aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/User
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-08-28 16:11:46 +0200
committerGitHub <noreply@github.com>2020-08-28 16:11:46 +0200
commit7b8364e001119aff43a236f2941da0c405c21f29 (patch)
treeb5b92fa00a480204bb942451bae80cc3dd084fac /lib/public/User
parent286bf2b84ffda4c5878026b28aa2bdd0ef75b54a (diff)
parent2c8e7912f30df1d3f2d1be97eba52ebf3761cf26 (diff)
downloadnextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.tar.gz
nextcloud-server-7b8364e001119aff43a236f2941da0c405c21f29.zip
Merge pull request #21288 from lmamane/master
Return correct loginname in credentials
Diffstat (limited to 'lib/public/User')
-rw-r--r--lib/public/User/Events/PostLoginEvent.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/public/User/Events/PostLoginEvent.php b/lib/public/User/Events/PostLoginEvent.php
index 15772bfef17..76d9a70aac8 100644
--- a/lib/public/User/Events/PostLoginEvent.php
+++ b/lib/public/User/Events/PostLoginEvent.php
@@ -38,6 +38,12 @@ class PostLoginEvent extends Event {
/** @var IUser */
private $user;
+ /**
+ * @since 20.0.0
+ * @var string
+ */
+ private $loginName;
+
/** @var string */
private $password;
@@ -47,9 +53,10 @@ class PostLoginEvent extends Event {
/**
* @since 18.0.0
*/
- public function __construct(IUser $user, string $password, bool $isTokenLogin) {
+ public function __construct(IUser $user, string $loginName, string $password, bool $isTokenLogin) {
parent::__construct();
$this->user = $user;
+ $this->loginName = $loginName;
$this->password = $password;
$this->isTokenLogin = $isTokenLogin;
}
@@ -62,6 +69,13 @@ class PostLoginEvent extends Event {
}
/**
+ * @since 20.0.0
+ */
+ public function getLoginName(): string {
+ return $this->loginName;
+ }
+
+ /**
* @since 18.0.0
*/
public function getPassword(): string {