userpage: show expiry

This commit is contained in:
Harvey Tindall
2023-06-18 12:27:18 +01:00
parent a22f032924
commit 5beeeb958b
42 changed files with 258 additions and 62 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ func (app *appContext) MyDetails(gc *gin.Context) {
if emailEnabled {
resp.Email = &MyDetailsContactMethodsDTO{}
if email, ok := app.storage.emails[user.ID]; ok {
if email, ok := app.storage.emails[user.ID]; ok && email.Addr != "" {
resp.Email.Value = email.Addr
resp.Email.Enabled = email.Contact
}