diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-17 12:08:44 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-17 12:08:44 -0700 |
commit | 95c2a9754403737e1c6a3b5e0ff0e22ff060db11 (patch) | |
tree | 60e01629d3ccd7f62b8f2cdfc4910bcb9684358f /system/admin/handlers.go | |
parent | c7f017af059d7838ba9bc6d369bdedd43d45ea5b (diff) |
fix ineffassign and spelling errors
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index c2d67e9..4f8ae83 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -114,6 +114,11 @@ func initHandler(res http.ResponseWriter, req *http.Request) { jwt.Secret([]byte(secret)) token, err := jwt.New(claims) + if err != nil { + log.Println(err) + res.WriteHeader(http.StatusInternalServerError) + return + } http.SetCookie(res, &http.Cookie{ Name: "_token", |