From 848558c3ddcceddc3df6f0ff446a2691c895228d Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 20 Feb 2016 22:01:18 +0100 Subject: verwenden der settings POST route diff --git a/main.go b/main.go index 79adfce..6311304 100644 --- a/main.go +++ b/main.go @@ -64,6 +64,7 @@ func main() { router.HandlerFunc("GET", "/login", login.DisplayLogin) router.HandlerFunc("POST", "/login", login.Login) router.HandlerFunc("GET", "/settings", login.DisplayUserSettings) + router.HandlerFunc("POST", "/settings", login.SaveUserRoute) router.HandlerFunc("GET", "/logout", login.Logout) router.HandlerFunc("GET", "/register", login.DisplayRegistration) router.HandlerFunc("POST", "/register", login.Register) diff --git a/modules/user/user.go b/modules/user/user.go index 2bf862b..06245e2 100644 --- a/modules/user/user.go +++ b/modules/user/user.go @@ -68,4 +68,4 @@ func (m *Module) viewUser(w http.ResponseWriter, r *http.Request, p httprouter.P data["Lists"] = lists.ListsToCards(userLists) m.g.Renderer.RenderPage("user", w, data) -} \ No newline at end of file +} diff --git a/views/pages/user_settings.html b/views/pages/user_settings.html index cf350a5..8c8317b 100644 --- a/views/pages/user_settings.html +++ b/views/pages/user_settings.html @@ -25,22 +25,18 @@
Standardmäßig wird dein Benutzername angezeigt. Das Ändern des Anzeigenamen erlaubt dir, dass dich andere Nutzer unter einem anderen Namen sehen.
perm_identity - +


Passwort ändern

Dein Passwort muss eine Länge von mindestens benis Zeichen haben.
lock_outline - +
lock - -
-
- lock - +