Skip to content

Commit 94c8033

Browse files
committed
minor #7595 Update exception code status (matthieu88160, javiereguiluz)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7595). Discussion ---------- Update exception code status Related to issue #7594 , propose update for exception code status to follow the status code semantic. Commits ------- 2e5ca2e Add the description for the HTTP status because it's not that common e08b57b Update exception code status
2 parents 3844df7 + 2e5ca2e commit 94c8033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_password_authenticator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the user::
5757
if ($currentHour < 14 || $currentHour > 16) {
5858
throw new AuthenticationException(
5959
'You can only log in between 2 and 4!',
60-
100
60+
412 // HTTP 412 Precondition Failed
6161
);
6262
}
6363

0 commit comments

Comments
 (0)