aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts/AccountProperty.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-05-20 00:41:00 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-05-25 14:35:38 +0200
commit847ed37afcc2b00f8dcf9ffc9f2f0671a3539bd4 (patch)
tree4351ab961171b6e6e94c68112ddf0d52fa78134b /lib/private/Accounts/AccountProperty.php
parent3b230f9928a2f52dcd3cb90d08446b65b889a984 (diff)
downloadnextcloud-server-847ed37afcc2b00f8dcf9ffc9f2f0671a3539bd4.tar.gz
nextcloud-server-847ed37afcc2b00f8dcf9ffc9f2f0671a3539bd4.zip
do not use private AccountManager in UsersController
- extends IAccountProperty for verificationData getters and setters - implementation thereof ^ - and of course adaption of UsersController Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Accounts/AccountProperty.php')
-rw-r--r--lib/private/Accounts/AccountProperty.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/private/Accounts/AccountProperty.php b/lib/private/Accounts/AccountProperty.php
index 0152137f6de..cb60a7c6940 100644
--- a/lib/private/Accounts/AccountProperty.php
+++ b/lib/private/Accounts/AccountProperty.php
@@ -39,12 +39,15 @@ class AccountProperty implements IAccountProperty {
private $scope;
/** @var string */
private $verified;
+ /** @var string */
+ private $verificationData;
- public function __construct(string $name, string $value, string $scope, string $verified) {
+ public function __construct(string $name, string $value, string $scope, string $verified, string $verificationData) {
$this->name = $name;
$this->value = $value;
$this->setScope($scope);
$this->verified = $verified;
+ $this->verificationData = $verificationData;
}
public function jsonSerialize() {
@@ -52,7 +55,8 @@ class AccountProperty implements IAccountProperty {
'name' => $this->getName(),
'value' => $this->getValue(),
'scope' => $this->getScope(),
- 'verified' => $this->getVerified()
+ 'verified' => $this->getVerified(),
+ 'verificationData' => $this->getVerificationData(),
];
}
@@ -164,4 +168,13 @@ class AccountProperty implements IAccountProperty {
public function getVerified(): string {
return $this->verified;
}
+
+ public function setVerificationData(string $verificationData): IAccountProperty {
+ $this->verificationData = $verificationData;
+ return $this;
+ }
+
+ public function getVerificationData(): string {
+ return $this->verificationData;
+ }
}