Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #99 from kcrisman/patch-2
Browse files Browse the repository at this point in the history
mmarco's idea to solve "invalid username" error
  • Loading branch information
jasongrout committed Oct 30, 2012
2 parents adcd348 + 37d598c commit be5eb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_version/authentication.py
Expand Up @@ -287,7 +287,7 @@ def error(msg):
return current_app.message(msg, url_for('forgot_pass'))

try:
user = g.notebook.user(request.values[username])
user = g.notebook.user(username)
except KeyError:
return error('Username is invalid.')

Expand Down

0 comments on commit be5eb3c

Please sign in to comment.