Merge lp:~kangol/openobject-client-web/trunk-autocleanloginfields into lp:openobject-client-web/trunk
Proposed by
Christophe Simonis (OpenERP)
Status: | Merged |
---|---|
Merged at revision: | 4104 |
Proposed branch: | lp:~kangol/openobject-client-web/trunk-autocleanloginfields |
Merge into: | lp:openobject-client-web/trunk |
Diff against target: |
38 lines (+7/-11) 1 file modified
addons/openerp/controllers/utils.py (+7/-11) |
To merge this branch: | bzr merge lp:~kangol/openobject-client-web/trunk-autocleanloginfields |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) | Pending | ||
Review via email: mp+43678@code.launchpad.net |
Description of the change
The function clean_login_fields on decorated secured methods remove the known fields from the kwargs. As an web-addons can add fields to the login page, thoses new fields need to be removed as well. As conventions, theses fields have to starts with "login_".
To post a comment you must log in.
Modified a pair of things during merge: used `del kw[k]` in the second loop as we know the key is in the dict (we got it from there), and replaced the string-splitting by a literal tuple (let's not use perl-isms for 3 constant strings in a function)