diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-11-08 16:33:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 16:33:53 +0100 |
commit | d751baee369c8ac70d16ebf80e365990010589a3 (patch) | |
tree | 0c2f194be186914b2b6cccd2a1741985c8755569 /lib | |
parent | 79088ea15f5724a0e00696cb77422fc66a07de7b (diff) | |
parent | a5422a39987ef9e0053f216e063b8c1dc9998238 (diff) | |
download | nextcloud-server-d751baee369c8ac70d16ebf80e365990010589a3.tar.gz nextcloud-server-d751baee369c8ac70d16ebf80e365990010589a3.zip |
Merge pull request #40799 from nextcloud/fix/login-csrf-check-error-message
fix: Show error message when CSRF check fails at login
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Login/LoginResult.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Authentication/Login/LoginResult.php b/lib/private/Authentication/Login/LoginResult.php index dec012c2fc9..18820d98a47 100644 --- a/lib/private/Authentication/Login/LoginResult.php +++ b/lib/private/Authentication/Login/LoginResult.php @@ -25,6 +25,8 @@ declare(strict_types=1); */ namespace OC\Authentication\Login; +use OC\Core\Controller\LoginController; + class LoginResult { /** @var bool */ private $success; @@ -59,6 +61,9 @@ class LoginResult { return $result; } + /** + * @param LoginController::LOGIN_MSG_*|null $msg + */ public static function failure(LoginData $data, string $msg = null): LoginResult { $result = new static(false, $data); if ($msg !== null) { |