-
Notifications
You must be signed in to change notification settings - Fork 53
silgy_usr_change_password
Jurek Muszyński edited this page May 13, 2019
·
3 revisions
Changes user password and sets their status to USER_STATUS_ACTIVE. ci is the connection index passed by the engine to silgy_app_main().
silgy_usr_xxx functions directly read the query string / payload data.
Request must contain the following parameters:
- opasswd (old password)
- passwd (new password)
- rpasswd (new password again)
Returns OK or one of the error codes:
- ERR_INVALID_REQUEST
- ERR_OLD_PASSWORD
- ERR_PASSWORD_TOO_SHORT
- ERR_PASSWORD_DIFFERENT
- ERR_INT_SERVER_ERROR
See silgy_app_main
function in silgy_app.cpp in Toy Facebook project.
Requires USERS compilation switch.