From 8f9987f2d0be15050aed40f1e95df4d2376a250a Mon Sep 17 00:00:00 2001 From: seagullbird Date: Wed, 21 Dec 2016 15:12:52 +0800 Subject: [PATCH] fixed bug --- app/auth/views.py | 4 ++-- app/templates/auth/reset_password.html | 2 +- data-dev.sqlite | Bin 184320 -> 184320 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/auth/views.py b/app/auth/views.py index f3d91d7..986f723 100644 --- a/app/auth/views.py +++ b/app/auth/views.py @@ -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.') # 重设密码页面 @@ -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.') diff --git a/app/templates/auth/reset_password.html b/app/templates/auth/reset_password.html index 12e2c76..352d9c0 100644 --- a/app/templates/auth/reset_password.html +++ b/app/templates/auth/reset_password.html @@ -16,7 +16,7 @@

Reset Password

-

Enter your email you registered when signed up, an confirmation email will be sent to you right away.

+

{{ msg }}

{{ wtf.quick_form(form) }}
diff --git a/data-dev.sqlite b/data-dev.sqlite index 3c3cd87ce2710362071c1a0ab06ccb8f51358cbb..31ad576c57161f00c53150de3e1ffdbd4b598e0c 100644 GIT binary patch delta 82 zcmZozz}>KbdxA7$;zSu|#>9;Y`*jV?jRT!cBVD{zl9CKlOwCP95>t!}4J=GjlM+pn lOp=pR&CLvxQ;k!A!j`G#smaOB0ebBLdW_ox^q4j*1OOl{8MOca delta 82 zcmZozz}>KbdxA7$!bBNo#)ORt`*jUH15@3C!^-_tj4YEa)67j$k_{}3O$-f94O3E$ mEX)&A4NZ*AObn7NEKCh8(+n*Pn*;RP1N0cT2k0?vSO@?PfEZE$