aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Settings/Personal/PersonalInfo.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-09-14 23:51:48 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-09-15 15:38:40 +0200
commitfe5e67265428dfe0cb2ff221cfe62da03df95038 (patch)
tree4c7dff7e5b8e4b088f12b5305c8a32c5ade10bf2 /apps/settings/lib/Settings/Personal/PersonalInfo.php
parent995aa6518357b9f371ced5ba8941dfd2a02b0d97 (diff)
downloadnextcloud-server-fe5e67265428dfe0cb2ff221cfe62da03df95038.tar.gz
nextcloud-server-fe5e67265428dfe0cb2ff221cfe62da03df95038.zip
let user choose notification email in user settings
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/settings/lib/Settings/Personal/PersonalInfo.php')
-rw-r--r--apps/settings/lib/Settings/Personal/PersonalInfo.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php
index 0a84f20f513..d03b01b3f46 100644
--- a/apps/settings/lib/Settings/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php
@@ -231,7 +231,7 @@ class PersonalInfo implements ISettings {
* @return array
*/
private function getEmails(IAccount $account): array {
- $primaryEmail = [
+ $systemEmail = [
'value' => $account->getProperty(IAccountManager::PROPERTY_EMAIL)->getValue(),
'scope' => $account->getProperty(IAccountManager::PROPERTY_EMAIL)->getScope(),
'verified' => $account->getProperty(IAccountManager::PROPERTY_EMAIL)->getVerified(),
@@ -249,8 +249,9 @@ class PersonalInfo implements ISettings {
);
$emails = [
- 'primaryEmail' => $primaryEmail,
+ 'primaryEmail' => $systemEmail,
'additionalEmails' => $additionalEmails,
+ 'notificationEmail' => (string)$account->getUser()->getPrimaryEMailAddress(),
];
return $emails;