Skip to content

Commit f9b3c53

Browse files
Update routes.py
1 parent 71ac3ad commit f9b3c53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/authentication/routes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def register():
8383
db.session.add(user)
8484
db.session.commit()
8585

86+
# Delete user from session
87+
logout_user()
88+
8689
return render_template('accounts/register.html',
8790
msg='User created successfully.',
8891
success=True,

0 commit comments

Comments
 (0)