Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seagullbird committed Dec 21, 2016
1 parent 26009b8 commit 8f9987f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/auth/views.py
Expand Up @@ -130,7 +130,7 @@ def password_reset_request():
flash('An email with instructions to reset your password has been '
'sent to you.')
return redirect(url_for('auth.sign_in'))
return render_template('auth/reset_password.html', form=form)
return render_template('auth/reset_password.html', form=form, msg='Enter your email you registered when signed up, an confirmation email will be sent to you right away.')


# 重设密码页面
Expand All @@ -148,4 +148,4 @@ def password_reset(token):
return redirect(url_for('auth.sign_in'))
else:
return redirect(url_for('main.index'))
return render_template('auth/reset_password.html', form=form)
return render_template('auth/reset_password.html', form=form, msg='Please reset your password.')
2 changes: 1 addition & 1 deletion app/templates/auth/reset_password.html
Expand Up @@ -16,7 +16,7 @@ <h1 id="logo">Reset Password</h1>
<div class="wrapper style1">
<div class="container">
<article id="main" class="special">
<p>Enter your email you registered when signed up, an confirmation email will be sent to you right away.</p>
<p>{{ msg }}</p>
<section>
{{ wtf.quick_form(form) }}
</section>
Expand Down
Binary file modified data-dev.sqlite
Binary file not shown.

0 comments on commit 8f9987f

Please sign in to comment.