Skip to content

Commit

Permalink
fixed success msg to verification email
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent c499652 commit 1c7fc22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions backend/internal/handler/auth.handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ func VerifyUser() gin.HandlerFunc {
ctx.AbortWithStatusJSON(http.StatusBadRequest, utils.ResponseGenerator("Some Error Occured", false))
return
}
ctx.AbortWithStatusJSON(http.StatusOK, utils.ResponseGenerator("User Verified Successfullu", true))

ctx.JSON(http.StatusOK, utils.ResponseGenerator("User Verified Successfully", true))
}
}

Expand Down
2 changes: 1 addition & 1 deletion backend/internal/middleware/isVerified.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func IsVerified() gin.HandlerFunc {
return
}
if !res.Verified {
ctx.AbortWithStatusJSON(http.StatusForbidden, utils.ResponseGenerator("Resource cannot be accessed without verification", false))
ctx.AbortWithStatusJSON(http.StatusForbidden, utils.ResponseGenerator("Resource cannot be accessed without verification. Kindly navigate to settings to verify your email", false))
return
}
ctx.Next()
Expand Down

0 comments on commit 1c7fc22

Please sign in to comment.