admin password shall support unicode characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
If you unvolontarly or deliberatly (stronger security) put a unicode character for admin_passwd in config file, the web interface won't authenticate your admin password.
Here is the problem with a − character :
> /usr/lib/
-> if passwd == tools.config[
(Pdb) p tools.config[
'**\xe2\x80\x94*'
(Pdb) p passwd
u'**\u2014*'
(Pdb) passwd == tools.config[
/usr/lib/
# -*- coding: utf-8 -*-
False
(Pdb) passwd == unicode(
True
so passwd == tools.config[
Another fix would be to explicitly forbid non-ascii chars in password (and raise an error accordingly).