Show Kratos general failure messages (for example for r wrong password), fix welcome message
This commit is contained in:
parent
2fec6dec32
commit
0ed0c66e1d
5 changed files with 305 additions and 323 deletions
|
|
@ -118,7 +118,13 @@ def login():
|
|||
identity = get_auth()
|
||||
|
||||
if identity:
|
||||
return render_template("loggedin.html", api_url=KRATOS_PUBLIC_URL, id=id)
|
||||
if 'name' in identity['traits']:
|
||||
# Add a space in front of the "name" so the template can put it
|
||||
# between "Welcome" and the comma
|
||||
name = " " + identity['traits']['name']
|
||||
else:
|
||||
name = ""
|
||||
return render_template("loggedin.html", api_url=KRATOS_PUBLIC_URL, name=name)
|
||||
|
||||
flow = request.args.get("flow")
|
||||
|
||||
|
|
|
|||
Reference in a new issue