-
Notifications
You must be signed in to change notification settings - Fork 4
setPassword
Naji edited this page Sep 4, 2017
·
1 revision
Changes user password
setPassword(old_password, new_password, new_hint, set_recovery_email, new_recovery_email)If new recovery email is specified, then error EMAIL_UNCONFIRMED is returned and password change will not be applied until email confirmation. Application should call getPasswordState from time to time to check if email is already confirmed
| Option | Description |
|---|---|
old_password |
Old user password |
new_password |
New user password, may be empty to remove the password |
new_hint |
New password hint, can be empty |
set_recovery_email |
Pass True, if recovery email should be changed |
new_recovery_email |
New recovery email, may be empty |
- Change old
My01dp45spassword toN3wp45sW0rdand giveHemMmas a hint.
setPassword('My01dp45s', 'N3wp45sW0rd', 'HemMm', 0, '')
or
setPassword{old_password = 'My01dp45s', new_password = 'N3wp45sW0rd', new_hint = 'HemMm'}