Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/private/legacy/OC_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
'post_login',
[
'uid' => $uid,
'password' => '',
'password' => null,
'isTokenLogin' => false,
]
);
Expand All @@ -199,7 +199,7 @@ public static function loginWithApache(\OCP\Authentication\IApacheBackend $backe
$dispatcher->dispatchTyped(new UserLoggedInEvent(
\OC::$server->get(IUserManager::class)->get($uid),
$uid,
'',
null,
false)
);

Expand Down
6 changes: 3 additions & 3 deletions lib/public/User/Events/UserLoggedInEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class UserLoggedInEvent extends Event {
/** @var IUser */
private $user;

/** @var string */
/** @var string|null */
private $password;

/** @var bool */
Expand All @@ -49,7 +49,7 @@ class UserLoggedInEvent extends Event {
/**
* @since 18.0.0
*/
public function __construct(IUser $user, string $loginName, string $password, bool $isTokenLogin) {
public function __construct(IUser $user, string $loginName, ?string $password, bool $isTokenLogin) {
parent::__construct();
$this->user = $user;
$this->password = $password;
Expand All @@ -74,7 +74,7 @@ public function getLoginName(): string {
/**
* @since 18.0.0
*/
public function getPassword(): string {
public function getPassword(): ?string {
return $this->password;
}

Expand Down