Skip to content
Snippets Groups Projects
Commit 71c96f19 authored by kaiyou's avatar kaiyou
Browse files

Autologin upon signup

parent 44089847
No related branches found
No related tags found
No related merge requests found
......@@ -46,5 +46,6 @@ def signup():
comment=str(_("Signed up using the Web form")), user=user)
models.db.session.commit()
flask.flash(_("User created successfully"), "success")
return flask.redirect(utils.url_or_intent("account.home"))
flask_login.login_user(user)
return flask.redirect(utils.url_or_intent(".home"))
return flask.render_template("account_signup.html", form=form)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment