From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 00:27:23 +0000 (+0200) Subject: auth: user method to retrieve configured email X-Git-Tag: v4.0~6 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/9c6d004933372ae88ff79a7625a3628aa447a5e6 auth: user method to retrieve configured email --- diff --git a/auth.inc.php b/auth.inc.php index 52cd4c1..4d9b29e 100644 --- a/auth.inc.php +++ b/auth.inc.php @@ -32,6 +32,11 @@ class User return $this->name ?: $this->login; } + function email() + { + return rtrim(@file_get_contents("{$this->dir}/email.txt")); + } + function admin() { return @file_exists("{$this->dir}/.admin");