From 843b197875893e48aeae239f40d608ba9dabe8b7 Mon Sep 17 00:00:00 2001 From: John Dukewich <37190801+jdukewich@users.noreply.github.com> Date: Sat, 16 Oct 2021 03:25:53 -0400 Subject: [PATCH] Reflect correct UserManager handlers in docs (#768) --- docs/usage/routes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/usage/routes.md b/docs/usage/routes.md index 5a8ddcc8..4c4ef532 100644 --- a/docs/usage/routes.md +++ b/docs/usage/routes.md @@ -53,7 +53,7 @@ Logout the authenticated user against the method named `name`. Check the corresp ### `POST /register` -Register a new user. Will call the `after_register` [handler](../configuration/routers/register.md#after-register) on successful registration. +Register a new user. Will call the `on_after_register` [handler](../configuration/user-manager.md#on_after_register) on successful registration. !!! abstract "Payload" ```json @@ -100,7 +100,7 @@ Register a new user. Will call the `after_register` [handler](../configuration/r ### `POST /forgot-password` -Request a reset password procedure. Will generate a temporary token and call the `after_forgot_password` [handler](../configuration/routers/reset.md#after-forgot-password) if the user exists. +Request a reset password procedure. Will generate a temporary token and call the `on_after_forgot_password` [handler](../configuration/user-manager.md#on_after_forgot_password) if the user exists. To prevent malicious users from guessing existing users in your database, the route will always return a `202 Accepted` response, even if the user requested does not exist. @@ -154,7 +154,7 @@ Reset a password. Requires the token generated by the `/forgot-password` route. ### `POST /request-verify-token` -Request a user to verify their e-mail. Will generate a temporary token and call the `after_verification_request` [handler](../configuration/routers/verify.md#after-verification-request) if the user **exists**, **active** and **not already verified**. +Request a user to verify their e-mail. Will generate a temporary token and call the `on_after_request_verify` [handler](../configuration/user-manager.md#on_after_request_verify) if the user **exists**, **active** and **not already verified**. To prevent malicious users from guessing existing users in your database, the route will always return a `202 Accepted` response, even if the user requested does not exist, not active or already verified. @@ -169,7 +169,7 @@ To prevent malicious users from guessing existing users in your database, the ro ### `POST /verify` -Verify a user. Requires the token generated by the `/request-verify-token` route. Will call the call the `after_verification` [handler](../configuration/routers/verify.md#after-verification) on success. +Verify a user. Requires the token generated by the `/request-verify-token` route. Will call the call the `on_after_verify` [handler](../configuration/user-manager.md#on_after_verify) on success. !!! abstract "Payload" ```json