add login form

This commit is contained in:
2026-02-24 20:07:20 -05:00
parent 0d5cc4d21f
commit 2b6644e0a4
9 changed files with 122 additions and 32 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func (s *AuthService) GenerateToken(userID int, email string) (string, error) {
},
}
token := jwt.NewWithClaims(jwt.SigningMethodES256, claims)
token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims)
return token.SignedString(s.secretKey)
}