summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorstaticdev <staticdev-support@proton.me>2023-12-05 18:58:46 +0100
committerGitHub <noreply@github.com>2023-12-05 18:58:46 +0100
commit572890defeebb8d29c6fec2dfeb5eff369e47c41 (patch)
tree6895238cf0a521f0566eaf6b7d16cce521356c95 /lib
parent15bed77a223ff0d7699b7ab52d722e9984223a5c (diff)
parenta4a120cb0c4f5f3f8856745dcdf7f7a4c7125828 (diff)
downloadnextcloud-server-572890defeebb8d29c6fec2dfeb5eff369e47c41.tar.gz
nextcloud-server-572890defeebb8d29c6fec2dfeb5eff369e47c41.zip
Merge branch 'stable27' into backport/39044/stable27
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) {