Autional Autional
API Reference GitHub autional.com →

POST /auth/forgot-password

When a user forgets their password, send a password reset verification code via email or SMS. Supports email and SMS methods. Reference: NIST SP 800-63B §5.1.1.2, OWASP ASVS V2.1.

Authentication None application/json

Request Body

Schema: dto.ForgotPasswordRequest

FieldTypeRequiredExampleConstraintsDescription
identity string Yes Email or phone

Responses

StatusDescriptionSchema
200Verification code sent to associated email or phonedto.ForgotPasswordResponse
400Invalid request parameters or user does not existgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.ForgotPasswordResponse

Forgot password response

FieldTypeRequiredExampleConstraintsDescription
expires_in integer No Expiration time
message string No Message

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No