Fix fails to _setEncodedPassword if password is a string
In some cases, a Person.password could be a string instead of None or PersistentMapping. If string, the code was raising TypeError.
Showing
-
Owner
If password is a string, then it is likely an existing password, and it must not be lost. This change overwrites it. It should indeed create a PersistentMapping, but put existing password in it too, as set format may be different from "default".
Please register or sign in to comment