mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
testing 127.0.0.1 issue
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
* - resendOTPValidator → POST /auth/resend-otp
|
||||
* - changePassValidator → POST /auth/change-password
|
||||
* - forgotPasswordValidator → POST /auth/forgot-password
|
||||
* - verifyResetOTPValidator → POST /auth/verify-reset-otp
|
||||
* - resetPasswordValidator → POST /auth/reset-password
|
||||
* Author: rgrgogu
|
||||
* Date Created: Oct. 6, 2025
|
||||
@@ -50,6 +51,11 @@ const forgotPasswordValidator = [
|
||||
body('email').isEmail().withMessage('Valid email is required.'),
|
||||
];
|
||||
|
||||
const verifyResetOTPValidator = [
|
||||
body('email').isEmail().withMessage('Valid email is required.'),
|
||||
body('otp').isLength({ min: 6, max: 6 }).isNumeric().withMessage('OTP must be 6 digits.'),
|
||||
];
|
||||
|
||||
const resetPasswordValidator = [
|
||||
body('email').isEmail().withMessage('Valid email is required.'),
|
||||
body('otp').isLength({ min: 6, max: 6 }).isNumeric().withMessage('OTP must be 6 digits.'),
|
||||
@@ -62,5 +68,5 @@ const resetPasswordValidator = [
|
||||
module.exports = {
|
||||
registerValidator, loginValidator,
|
||||
verifyOTPValidator, resendOTPValidator, changePassValidator,
|
||||
forgotPasswordValidator, resetPasswordValidator,
|
||||
forgotPasswordValidator, verifyResetOTPValidator, resetPasswordValidator,
|
||||
};
|
||||
Reference in New Issue
Block a user