commit 043839faeeb66403d747fdd405ad07a2a016ac56
parent 22b68de73ddb87c6e5ef1ba5fe2b4feac265edfd
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 30 Aug 2024 18:51:54 -0700
Update valid code response
I think valid is more appropriate than verified as the provided
code is valid, although yes it's verified aswell.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/api/users.go b/cmd/api/users.go
@@ -74,7 +74,7 @@ func (e *Env) VerifyUserEmailCode(c *gin.Context) {
if verified, err := e.backend.VerifyEmail(user, &req.Code); err != nil {
RespondError(c, 500, "Unable to verify email: %s", err.Error())
} else {
- Respond(c, 200, gin.H{"verified": verified})
+ Respond(c, 200, gin.H{"valid": verified})
}
}