From 9c6d004933372ae88ff79a7625a3628aa447a5e6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 02:27:23 +0200 Subject: [PATCH] auth: user method to retrieve configured email --- auth.inc.php | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.30.0