File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
final class StatusMessages
8
8
{
9
- const SERVICE_UNAVAILABLE = 'Service Unavailable ' ;
10
- const BAD_REQUEST = 'Bad Request ' ;
9
+ const SERVICE_UNAVAILABLE = 'OTP Service Unavailable ' ;
10
+ const BAD_REQUEST = 'Bad Request for OTP ' ;
11
+ const INVALID_REQUEST = 'Can not send OTP ' ;
11
12
const RESEND_SERVICE_DISABLED = 'Resend Service is disabled ' ;
12
13
const SUCCESSFULLY_SENT_OTP = 'OTP Sent to the recipient ' ;
13
14
const TOO_MANY_WRONG_RETRY = 'Too Many Wrong Try ' ;
14
15
const INVALID_OTP_GIVEN = 'Invalid Otp ' ;
15
- const OTP_TIMEOUT = 'Otp Expired/Timeout ' ;
16
- const RESEND_EXCEEDED = 'Resend Exceeded ' ;
17
- const VERIFIED_OTP = 'Otp verified ' ;
16
+ const OTP_TIMEOUT = 'OTP Expired/Timeout ' ;
17
+ const RESEND_EXCEEDED = 'OTP Resend Exceeded ' ;
18
+ const VERIFIED_OTP = 'OTP verified ' ;
18
19
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public static function requestOtp(OtpRequestObject $request)
50
50
//throw $th;
51
51
return Responder::formatter ([
52
52
'code ' => StatusCodes::BAD_REQUEST ,
53
- 'message ' => StatusMessages::BAD_REQUEST
53
+ 'message ' => StatusMessages::INVALID_REQUEST
54
54
]);
55
55
}
56
56
You can’t perform that action at this time.
0 commit comments