]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make password nullable in LoginData
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 9 Mar 2020 12:38:30 +0000 (13:38 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 31 Mar 2020 19:52:01 +0000 (21:52 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Authentication/Login/LoginData.php

index 3249c44a29ac4f5fcedd2886c508368360cd7fe5..ec8ebdbab46bd080392c8401061f25cd7bb8a515 100644 (file)
@@ -56,7 +56,7 @@ class LoginData {
 
        public function __construct(IRequest $request,
                                                                string $username,
-                                                               string $password,
+                                                               ?string $password,
                                                                string $redirectUrl = null,
                                                                string $timeZone = '',
                                                                string $timeZoneOffset = '') {
@@ -80,7 +80,7 @@ class LoginData {
                return $this->username;
        }
 
-       public function getPassword(): string {
+       public function getPassword(): ?string {
                return $this->password;
        }