Skip to content

Commit

Permalink
Fix the redirect view after registeration
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Sep 21, 2024
1 parent ebd469e commit 4cff37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moments/blueprints/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def register():
token = generate_token(user=user, operation=Operations.CONFIRM)
send_confirmation_email(user=user, token=token)
flash('Confirmation email sent, please check your inbox.', 'info')
return redirect(url_for('.login'))
return redirect(url_for('main.index'))
return render_template('auth/register.html', form=form)


Expand Down

0 comments on commit 4cff37c

Please sign in to comment.