-
Notifications
You must be signed in to change notification settings - Fork 53
silgy_usr_verify_passwd_reset_key
Jurek Muszyński edited this page May 13, 2019
·
3 revisions
Verifies password reset key linkkey. ci is the connection index passed by the engine to silgy_app_main(). linkkey is validated against users_p_resets
table. Also, it has to be not older than 24 hours.
Returns OK or one of the error codes:
- ERR_LINK_BROKEN
- ERR_LINK_MAY_BE_EXPIRED
- ERR_INT_SERVER_ERROR
Additionally, upon successful return, it sets uid to user id.
See silgy_app_main
function in silgy_app.cpp in Toy Facebook project.
Requires USERS compilation switch.