Browse Source

fix redirects

testing
Burathar 4 years ago
parent
commit
be04fb68f8
  1. 4
      app/auth/routes.py

4
app/auth/routes.py

@ -17,7 +17,7 @@ def login(): @@ -17,7 +17,7 @@ def login():
return redirect(url_for('auth.login'))
login_user(player, remember=form.remember_me.data)
return redirect(url_for('main.index'))
return render_template('login.html', title='Sign In', form=form)
return render_template('auth/login.html', title='Sign In', form=form)
@bp.route('/logout')
@login_required
@ -38,4 +38,4 @@ def register(): @@ -38,4 +38,4 @@ def register():
db.session.commit()
flash('Congratulations, you are now a registered user!')
return redirect(url_for('auth.login'))
return render_template('register.html', title='Register', form=form)
return render_template('auth/register.html', title='Register', form=form)

Loading…
Cancel
Save