Compare commits
2 Commits
06a8df3bb8
...
0429821c08
Author | SHA1 | Date | |
---|---|---|---|
0429821c08 | |||
dae386ef87 |
|
@ -427,8 +427,6 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save this ^^ in Redis
|
|
||||||
|
|
||||||
var page authPage
|
var page authPage
|
||||||
page.Session = sess
|
page.Session = sess
|
||||||
page.Me = me
|
page.Me = me
|
||||||
|
@ -439,6 +437,9 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
page.Channels, err = h.Backend.ChannelsGetList()
|
page.Channels, err = h.Backend.ChannelsGetList()
|
||||||
|
|
||||||
app, err := getAppInfo(clientID)
|
app, err := getAppInfo(clientID)
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err)
|
||||||
|
}
|
||||||
page.App = app
|
page.App = app
|
||||||
|
|
||||||
err = h.Templates.ExecuteTemplate(w, "auth.html", page)
|
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)
|
code := util.RandStringBytes(32)
|
||||||
state := r.FormValue("state")
|
state := r.FormValue("state")
|
||||||
channel := r.FormValue("channel")
|
channel := r.FormValue("channel")
|
||||||
log.Println(code, state, channel)
|
|
||||||
|
|
||||||
values, err := redis.Values(conn.Do("HGETALL", "state:"+state))
|
values, err := redis.Values(conn.Do("HGETALL", "state:"+state))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user