working local dev config
This commit is contained in:
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user