Fix getting host

This commit is contained in:
Lakhan Samani
2022-01-31 14:30:13 +05:30
parent 4e48320cf1
commit 36d9861517
4 changed files with 11 additions and 8 deletions

View File

@@ -33,10 +33,8 @@ func AppHandler() gin.HandlerFunc {
var stateObj State
if state == "" {
stateObj.AuthorizerURL = hostname
stateObj.RedirectURL = stateObj.AuthorizerURL + "/app"
stateObj.RedirectURL = hostname + "/app"
} else {
decodedState, err := utils.DecryptB64(state)
if err != nil {