fix: Employee entity and controller

This commit is contained in:
Petr Rudichev 2025-02-20 15:22:10 +03:00
parent f6ca912ed1
commit 105d028fa8
3 changed files with 1 additions and 6 deletions

View File

@ -17,6 +17,7 @@ public class AuthorizationController {
@GetMapping("/login")
public ResponseEntity<EmployeeDTO> login(Authentication authentication) {
return ResponseEntity.ok(employeeService.getByEmail(authentication.getName()));
}

View File

@ -65,5 +65,4 @@ public class EmployeeController {
employeeService.patchBlockEmployee(employeeId, blockStatus);
return ResponseEntity.noContent().build();
}
}

View File

@ -94,11 +94,6 @@ public class Employee implements UserDetails {
return List.of(this.role);
}
@Override
public String getPassword() {
return this.password;
}
@Override
public String getUsername() {
return this.email;