Newly registered user logged in directly
This commit is contained in:
parent
d7936dc3e0
commit
1a50898d21
@ -100,6 +100,7 @@ def register():
|
||||
db.session.add(newuser)
|
||||
db.session.commit()
|
||||
flash("Account Succesfully created", "success")
|
||||
login_user(newuser)
|
||||
return redirect(url_for("index"))
|
||||
|
||||
except InvalidRequestError:
|
||||
|
Loading…
Reference in New Issue
Block a user