allow user to change their password

This commit is contained in:
2023-02-09 01:07:31 -03:00
parent 63392e2726
commit 73e958efb1
4 changed files with 49 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ func GenerateJWT(email string, username string) (tokenString string, err error)
return
}
func ValidateToken(signedToken string) (err error) {
func ValidateToken(signedToken string) (claims *JWTClaim, err error) {
token, err := jwt.ParseWithClaims(
signedToken,
&JWTClaim{},