Skip to content

Commit 2384ddf

Browse files
committed
change status message
1 parent 5fed389 commit 2384ddf

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Constants/StatusMessages.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
final class StatusMessages
88
{
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';
1112
const RESEND_SERVICE_DISABLED = 'Resend Service is disabled';
1213
const SUCCESSFULLY_SENT_OTP = 'OTP Sent to the recipient';
1314
const TOO_MANY_WRONG_RETRY = 'Too Many Wrong Try';
1415
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';
1819
}

src/OtpValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function requestOtp(OtpRequestObject $request)
5050
//throw $th;
5151
return Responder::formatter([
5252
'code' => StatusCodes::BAD_REQUEST,
53-
'message' => StatusMessages::BAD_REQUEST
53+
'message' => StatusMessages::INVALID_REQUEST
5454
]);
5555
}
5656

0 commit comments

Comments
 (0)