aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller/VerificationController.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-21 17:44:32 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2024-02-13 21:06:30 +0100
commit839ddaa3547bb0042b6225edf2df7bff1831cdd5 (patch)
tree353d49dd856548ca243bf1b9e15274372bbc518b /apps/provisioning_api/lib/Controller/VerificationController.php
parentb63abdae8c1708693addf1dc3b2f862131e0299d (diff)
downloadnextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.tar.gz
nextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.zip
feat: rename users to account or person
Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/provisioning_api/lib/Controller/VerificationController.php')
-rw-r--r--apps/provisioning_api/lib/Controller/VerificationController.php4
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);