fixed some login and booking bugs
This commit is contained in:
@@ -6,6 +6,12 @@ import (
|
||||
ory "github.com/ory/client-go"
|
||||
)
|
||||
|
||||
func LoginHandler(oryClient *ory.APIClient, tunnelURL string) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, tunnelURL+"/ui/login", http.StatusSeeOther)
|
||||
}
|
||||
}
|
||||
|
||||
func LogOutHandler(oryClient *ory.APIClient, tunnelURL string) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
cookies := r.Header.Get("Cookie")
|
||||
|
||||
Reference in New Issue
Block a user