Add missing title into render_template

This commit is contained in:
Stephan Porada 2019-07-09 15:38:21 +02:00
parent de2aacc2de
commit 1db630b74a

View File

@ -48,7 +48,7 @@ def register():
'auth/email/confirm', user=user, token=token) 'auth/email/confirm', user=user, token=token)
flash('A confirmation email has been sent to you by email.') flash('A confirmation email has been sent to you by email.')
return redirect(url_for('auth.login')) return redirect(url_for('auth.login'))
return render_template('auth/register.html.j2', form=form) return render_template('auth/register.html.j2', form=form, title='Register')
@auth.route('/confirm/<token>') @auth.route('/confirm/<token>')
@ -77,7 +77,7 @@ def before_request():
def unconfirmed(): def unconfirmed():
if current_user.is_anonymous or current_user.confirmed: if current_user.is_anonymous or current_user.confirmed:
return redirect(url_for('main.index')) return redirect(url_for('main.index'))
return render_template('auth/unconfirmed.html.j2') return render_template('auth/unconfirmed.html.j2', title='Unconfirmed')
@auth.route('/confirm') @auth.route('/confirm')