aboutsummaryrefslogtreecommitdiff
path: root/login.go
diff options
context:
space:
mode:
Diffstat (limited to 'login.go')
-rw-r--r--login.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/login.go b/login.go
index 62a72c1..686b07b 100644
--- a/login.go
+++ b/login.go
@@ -225,6 +225,9 @@ func (lu *LoggedUser) WelcomeName() string {
}
return ret
}
+func (lu *LoggedUser) Email() string {
+ return lu.Entry.GetAttributeValue("mail")
+}
func (lu *LoggedUser) S3KeyInfo() (*garage.KeyInfo, error) {
var err error
var keyPair *garage.KeyInfo