Skip to content

silgy_usr_verify_passwd_reset_key

Jurek Muszyński edited this page May 13, 2019 · 3 revisions

int silgy_usr_verify_passwd_reset_key(int ci, char *linkkey, long *uid)

Description

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

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.

Example

See silgy_app_main function in silgy_app.cpp in Toy Facebook project.

Notes

Requires USERS compilation switch.

Clone this wiki locally