fix signup on wpd

master
Aevann 2024-10-28 02:40:15 +03:00
parent efaec5d047
commit 7759dc64ce
1 changed files with 3 additions and 1 deletions

View File

@ -346,7 +346,6 @@ def sign_up_post(v):
g.v = new_user g.v = new_user
g.username = new_user.username g.username = new_user.username
check_for_alts(new_user, include_current_session=True)
send_notification(new_user.id, WELCOME_MSG) send_notification(new_user.id, WELCOME_MSG)
if SIGNUP_FOLLOW_ID: if SIGNUP_FOLLOW_ID:
@ -363,6 +362,9 @@ def sign_up_post(v):
cache.delete("user_count") 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: if redir and is_site_url(redir) and redir not in NO_LOGIN_REDIRECT_URLS:
return redirect(redir) return redirect(redir)
return redirect('/') return redirect('/')