diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-13 21:28:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 21:28:00 +0100 |
commit | 6f1d9eb11880efb900370f1e6857f05dbef5f84a (patch) | |
tree | 906494fac943bd6ae4ecdf1e5460ee590e98afb1 /apps/provisioning_api/lib/Controller/VerificationController.php | |
parent | b63abdae8c1708693addf1dc3b2f862131e0299d (diff) | |
parent | 524ed97d621ded1aafa0f2f92670765af22ba55f (diff) | |
download | nextcloud-server-6f1d9eb11880efb900370f1e6857f05dbef5f84a.tar.gz nextcloud-server-6f1d9eb11880efb900370f1e6857f05dbef5f84a.zip |
Merge pull request #34178 from nextcloud/replace-user-to-account-or-person
Rename users to account or person
Diffstat (limited to 'apps/provisioning_api/lib/Controller/VerificationController.php')
-rw-r--r-- | apps/provisioning_api/lib/Controller/VerificationController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/provisioning_api/lib/Controller/VerificationController.php b/apps/provisioning_api/lib/Controller/VerificationController.php index 6b2443796fc..e184dc13fc6 100644 --- a/apps/provisioning_api/lib/Controller/VerificationController.php +++ b/apps/provisioning_api/lib/Controller/VerificationController.php @@ -83,7 +83,7 @@ class VerificationController extends Controller { public function showVerifyMail(string $token, string $userId, string $key) { if ($this->userSession->getUser()->getUID() !== $userId) { // not a public page, hence getUser() must return an IUser - throw new InvalidArgumentException('Logged in user is not mail address owner'); + throw new InvalidArgumentException('Logged in account is not mail address owner'); } $email = $this->crypto->decrypt($key); @@ -102,7 +102,7 @@ class VerificationController extends Controller { public function verifyMail(string $token, string $userId, string $key) { try { if ($this->userSession->getUser()->getUID() !== $userId) { - throw new InvalidArgumentException('Logged in user is not mail address owner'); + throw new InvalidArgumentException('Logged in account is not mail address owner'); } $email = $this->crypto->decrypt($key); $ref = \substr(hash('sha256', $email), 0, 8); |