spring security finally

This commit is contained in:
jleroy2023
2025-07-16 12:00:18 +02:00
parent 1cdd1e9d05
commit d6ff4c9b0e
4 changed files with 6 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ public class AuthenticationController {
public ResponseEntity<?> login(@RequestBody User user) {
try {
Authentication auth = authManager.authenticate(
new UsernamePasswordAuthenticationToken(user.getUsername(), user.getPasword())
new UsernamePasswordAuthenticationToken(user.getUsername(), user.getPassword())
);
String token = jwtService.generateToken(user.getUsername());