Compare commits

...

2 Commits

Author SHA1 Message Date
0429821c08 Check error getAppInfo 2018-07-25 13:52:13 +02:00
dae386ef87 Remove some logging and useless comment 2018-07-25 13:51:59 +02:00

View File

@ -427,8 +427,6 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
// Save this ^^ in Redis
var page authPage
page.Session = sess
page.Me = me
@ -439,6 +437,9 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
page.Channels, err = h.Backend.ChannelsGetList()
app, err := getAppInfo(clientID)
if err != nil {
log.Println(err)
}
page.App = app
err = h.Templates.ExecuteTemplate(w, "auth.html", page)
@ -513,7 +514,6 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
code := util.RandStringBytes(32)
state := r.FormValue("state")
channel := r.FormValue("channel")
log.Println(code, state, channel)
values, err := redis.Values(conn.Do("HGETALL", "state:"+state))
if err != nil {