diff --git a/session/users.go b/session/users.go index 4f3bed3..7ce905b 100644 --- a/session/users.go +++ b/session/users.go @@ -148,9 +148,9 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) { func LoginHandler(w http.ResponseWriter, r *http.Request) { if "GET" == r.Method { // show the login page - + model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale), - "locale": conf.Wide.Locale, "ver": conf.WideVersion} + "locale": conf.Wide.Locale, "ver": conf.WideVersion, "year": time.Now().Year()} t, err := template.ParseFiles("views/login.html") @@ -231,7 +231,7 @@ func SignUpUser(w http.ResponseWriter, r *http.Request) { model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(conf.Wide.Locale), "locale": conf.Wide.Locale, "ver": conf.WideVersion, "dir": dir, - "pathSeparator": conf.PathSeparator} + "pathSeparator": conf.PathSeparator, "year": time.Now().Year()} t, err := template.ParseFiles("views/sign_up.html") diff --git a/views/login.html b/views/login.html index 2512574..0fb0ae2 100644 --- a/views/login.html +++ b/views/login.html @@ -43,7 +43,7 @@ diff --git a/views/sign_up.html b/views/sign_up.html index 520d19d..83ea8e4 100644 --- a/views/sign_up.html +++ b/views/sign_up.html @@ -49,7 +49,7 @@