post https://api.banking.netevia.dev/api/auth/ValidateUnlockOtp
The POST /api/auth/ValidateUnlockOtp endpoint is used to validate a One-Time Password (OTP) that was previously sent to the user for unlocking their account. When a user attempts to unlock their account, they must provide the OTP received via mobile or email. This endpoint verifies the submitted OTP, and if the OTP is valid, it unlocks the user's account and grants access. If the OTP is invalid or expired, an error message is returned, ensuring that only authorized users can regain access.
Purpose:
- Validate the OTP submitted by the user.
- Unlock the user’s account if the OTP is valid.
- Secure the account recovery process by ensuring that only users who received the OTP can unlock their account.
Response:
- If the OTP is valid, the response confirms that the account has been successfully unlocked
- If the OTP is invalid or expired, the response will return an error message