working local dev config

This commit is contained in:
Eugene
2017-12-22 14:42:15 -06:00
parent d6c4d06bd8
commit c034a84c6b
8 changed files with 33 additions and 17 deletions
+2 -2
View File
@@ -140,8 +140,8 @@ func (p Provider) AuthHandler(w http.ResponseWriter, r *http.Request) {
log.Printf("[DEBUG] %+v", jData)
// redirect to back url if presented
if fromUrl, ok := session.Values["from"]; ok {
http.Redirect(w, r, fromUrl.(string), http.StatusTemporaryRedirect)
if fromURL, ok := session.Values["from"]; ok {
http.Redirect(w, r, fromURL.(string), http.StatusTemporaryRedirect)
return
}
+1 -2
View File
@@ -4,12 +4,11 @@ import (
"html/template"
"log"
"net/http"
"path/filepath"
"strconv"
"strings"
"time"
"path/filepath"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/go-chi/render"