Skip to content

Commit

Permalink
Merge pull request #97 from mitmedialab/dsjen/email-case
Browse files Browse the repository at this point in the history
Password reset email is case insensitive
  • Loading branch information
dsjen authored Jan 17, 2019
2 parents 8c29c0e + 16bd103 commit b3de4b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/app/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export const DELETE_USER_REQUEST = 'DELETE_USER_REQUEST';
export const DELETE_USER_SUCCESS = 'DELETE_USER_SUCCESS';
export const DELETE_USER_FAILURE = 'DELETE_USER_FAILURE';

export const VERSION = 'v1.8.1';
export const VERSION = 'v1.8.2';

export const API_URL = ''; // process.env.NODE_ENV === 'production' ? '': 'http://localhost:5000/'
2 changes: 1 addition & 1 deletion server/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def email_reset_password():
if not app.config['ENABLE_MAIL']:
raise NotImplementedEndpoint()
json_data = request.json
email = json_data['email']
email = json_data['email'].lower()
user = User.query.filter_by(email=email).first_or_404()
token = URLSafeTimedSerializer(app.config["SECRET_KEY"]).dumps(user.email, salt=RESET_PASSWORD_SALT)
password_reset_url = url_for('home.reset_password', token=token, _external=True)
Expand Down

0 comments on commit b3de4b2

Please sign in to comment.