mirror of https://github.com/me50/kukemuna.git
automated commit by check50 [check50=True]
This commit is contained in:
parent
0e5f4507bd
commit
f12011707e
2
app.py
2
app.py
|
|
@ -209,7 +209,7 @@ def register():
|
||||||
|
|
||||||
if username_exists:
|
if username_exists:
|
||||||
flash("Username exists already!")
|
flash("Username exists already!")
|
||||||
return render_template("register.html")
|
return apology("username already exists!", 400)
|
||||||
|
|
||||||
db.execute("INSERT INTO users(username, hash) VALUES(?, ?)",
|
db.execute("INSERT INTO users(username, hash) VALUES(?, ?)",
|
||||||
username, generate_password_hash(password))
|
username, generate_password_hash(password))
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue