aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-11-08 16:33:53 +0100
committerGitHub <noreply@github.com>2023-11-08 16:33:53 +0100
commitd751baee369c8ac70d16ebf80e365990010589a3 (patch)
tree0c2f194be186914b2b6cccd2a1741985c8755569 /lib
parent79088ea15f5724a0e00696cb77422fc66a07de7b (diff)
parenta5422a39987ef9e0053f216e063b8c1dc9998238 (diff)
downloadnextcloud-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.php5
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) {