Fixing reset password logger (#359)

selenium-screenshot-testing
Kevin Chung 2017-08-22 21:50:42 -04:00 committed by GitHub
parent 2e41886591
commit c217c1cc2f
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ def confirm_user(data=None):
@auth.route('/reset_password', methods=['POST', 'GET'])
@auth.route('/reset_password/<data>', methods=['POST', 'GET'])
def reset_password(data=None):
logger = logging.getLogger('logins')
if data is not None and request.method == "GET":
return render_template('reset_password.html', mode='set')
if data is not None and request.method == "POST":