summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-26 16:49:49 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-26 16:49:49 +0100
commit80c43ffc6cbae26695435ea7b4d2e8126dee6725 (patch)
treea2b1d25d3814b5b16d32b17e43c78aa65b76d928 /lib
parent100d9e74571d958bb5263cf0b7f90690dbd49f26 (diff)
parentcc8c38e8ba55c5a64587951d2ef87ab1e652835d (diff)
downloadnextcloud-server-80c43ffc6cbae26695435ea7b4d2e8126dee6725.tar.gz
nextcloud-server-80c43ffc6cbae26695435ea7b4d2e8126dee6725.zip
Merge pull request #20702 from owncloud/move-user-principal-into-subfolder
Users are available under it's own principal resource named 'principa…
Diffstat (limited to 'lib')
-rw-r--r--lib/private/user/user.php10
-rw-r--r--lib/public/iuser.php8
2 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 28b66d7f5ba..2740b25d5d3 100644
--- a/lib/private/user/user.php
+++ b/lib/private/user/user.php
@@ -306,4 +306,14 @@ class User implements IUser {
$this->config->setUserValue($this->uid, 'core', 'enabled', $enabled);
}
}
+
+ /**
+ * get the users email address
+ *
+ * @return string|null
+ * @since 9.0.0
+ */
+ public function getEMailAddress() {
+ return $this->config->getUserValue($this->uid, 'settings', 'email');
+ }
}
diff --git a/lib/public/iuser.php b/lib/public/iuser.php
index 6cbcfbf2312..1e52cd59036 100644
--- a/lib/public/iuser.php
+++ b/lib/public/iuser.php
@@ -144,4 +144,12 @@ interface IUser {
* @since 8.0.0
*/
public function setEnabled($enabled);
+
+ /**
+ * get the users email address
+ *
+ * @return string|null
+ * @since 9.0.0
+ */
+ public function getEMailAddress();
}