From ba3fd90b10b92202ca456673e17852b472f63c11 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Wed, 26 Jul 2023 11:10:31 +0200 Subject: [PATCH] Refactoring --- view-user.go | 1 + view.go | 1 + 2 files changed, 2 insertions(+) diff --git a/view-user.go b/view-user.go index be1a748..40c3671 100644 --- a/view-user.go +++ b/view-user.go @@ -40,6 +40,7 @@ func handleUser(w http.ResponseWriter, r *http.Request) { data.DisplayName = login.UserEntry.GetAttributeValue("displayName") data.GivenName = login.UserEntry.GetAttributeValue("givenName") data.Surname = login.UserEntry.GetAttributeValue("sn") + data.OtherEmail = login.UserEntry.GetAttributeValue("carLicense") // data.Visibility = login.UserEntry.GetAttributeValue(FIELD_NAME_DIRECTORY_VISIBILITY) data.Description = login.UserEntry.GetAttributeValue("description") //data.ProfilePicture = login.UserEntry.GetAttributeValue(FIELD_NAME_PROFILE_PICTURE) diff --git a/view.go b/view.go index 23c9ea5..9195f7f 100644 --- a/view.go +++ b/view.go @@ -187,6 +187,7 @@ type ProfileTplData struct { GivenName string Surname string Description string + OtherEmail string Common NestedCommonTplData Login NestedLoginTplData }