Skip to content

npp_usr_verify_passwd_reset_key

Jurek Muszyński edited this page Mar 28, 2024 · 3 revisions

int npp_usr_verify_passwd_reset_key(char *linkkey, int *user_id)

Description

Verifies password reset key linkkey. 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 user_id to user id.

Example

Notes

Requires NPP_USERS compilation switch.

Clone this wiki locally