Ticket #13536: trac_13536.patch

File trac_13536.patch, 678 bytes (added by mmarco, 9 years ago)
  • flask_version/authentication.py

    # HG changeset patch
    # User Miguel Marco <mmarco@unizar.es>
    # Date 1348664001 -7200
    # Node ID e303db31de863b536492316bd3536d025b4d4bb9
    # Parent  dbcbffb9c0856cb1bdf072cd7e5531687c757daa
    Trac 13536. Solved "invalid username" error when recovering password
    
    diff --git a/flask_version/authentication.py b/flask_version/authentication.py
    a b  
    289289        return current_app.message(msg, url_for('forgot_pass'))
    290290
    291291    try:
    292         user = g.notebook.user(request.values[username])
     292        user = g.notebook.user(username)
    293293    except KeyError:
    294294        return error('Username is invalid.')
    295295