fix: redirect uri
This commit is contained in:
@@ -42,7 +42,6 @@ func VerifyEmailHandler() gin.HandlerFunc {
|
||||
|
||||
// verify if token exists in db
|
||||
hostname := parsers.GetHost(c)
|
||||
log.Debug("hostname used for jwt verification: ", hostname)
|
||||
claim, err := token.ParseJWTToken(tokenInQuery, hostname, verificationRequest.Nonce, verificationRequest.Email)
|
||||
if err != nil {
|
||||
log.Debug("Error parsing token: ", err)
|
||||
@@ -116,7 +115,7 @@ func VerifyEmailHandler() gin.HandlerFunc {
|
||||
if strings.Contains(redirectURL, "?") {
|
||||
redirectURL = redirectURL + "&" + params
|
||||
} else {
|
||||
redirectURL = redirectURL + "?" + params
|
||||
redirectURL = redirectURL + "?" + strings.TrimPrefix(params, "&")
|
||||
}
|
||||
|
||||
go db.Provider.AddSession(models.Session{
|
||||
|
Reference in New Issue
Block a user