diff --git a/files/routes/login.py b/files/routes/login.py index 18c13113e..396b473c0 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -346,7 +346,6 @@ def sign_up_post(v): g.v = new_user g.username = new_user.username - check_for_alts(new_user, include_current_session=True) send_notification(new_user.id, WELCOME_MSG) if SIGNUP_FOLLOW_ID: @@ -363,6 +362,9 @@ def sign_up_post(v): cache.delete("user_count") + g.db.commit() + check_for_alts(new_user, include_current_session=True) + if redir and is_site_url(redir) and redir not in NO_LOGIN_REDIRECT_URLS: return redirect(redir) return redirect('/')