Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
allow null password in UserLoggedInEvent
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Oct 13, 2021
commit 0d2c2ab62996ccbeed4d03383980a841c8473b13
2 changes: 1 addition & 1 deletion lib/private/legacy/OC_User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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