Skip to content

Commit

Permalink
edited success messages for new account
Browse files Browse the repository at this point in the history
  • Loading branch information
heyyakash committed Aug 31, 2024
1 parent 341cce5 commit d5d1568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/handler/auth.handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func CreateNewAccount() gin.HandlerFunc {
http.SetCookie(ctx.Writer, cookie)
http.SetCookie(ctx.Writer, refcookie)

ctx.JSON(http.StatusOK, utils.ResponseGenerator("Success", true))
ctx.JSON(http.StatusOK, utils.ResponseGenerator("New Account Created Successfully", true))
return
}
ctx.AbortWithStatusJSON(http.StatusBadRequest, utils.ResponseGenerator("User already exists", false))
Expand Down

0 comments on commit d5d1568

Please sign in to comment.