forked from MarseyWorld/MarseyWorld
fix signup on wpd
parent
efaec5d047
commit
7759dc64ce
|
@ -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('/')
|
||||
|
|
Loading…
Reference in New Issue