Opened 9 years ago

Closed 9 years ago

#4314 closed (fixed)

unicode-branch - non-ascii passwords don't work

Reported by: anonymous Owned by: mtredinnick
Component: Internationalization Version: other branch
Severity: Keywords: unicode-branch, authorization
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


UnicodeEncodeError is thrown if an non-ascii password is set. This problem can be solved by the attached patch.

I realize that in python 2.4 only string argument can be used in methods and In python 2.5 unicode argument is also acceptable.

Simple test:

# encoding: UTF-8

from django.contrib.auth.models import User
User().set_password(u'příliš žlouťoučký kůň úpěl ďábelské ódy')

Attachments (2)

unicode-password.diff (2.1 KB) - added by anonymous 9 years ago.
password.txt (43 bytes) - added by anonymous 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by anonymous

comment:1 Changed 9 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Good fix. This will be forwards compatible, too, which is important.

comment:2 Changed 9 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [5269]) unicode: Fixed #4314 -- Allow non-ASCII characters in password strings.

Changed 8 years ago by anonymous

Note: See TracTickets for help on using tickets.
Back to Top