Closed DmitryZakharov closed 11 years ago
AccountController class
@Autowired private AccountValidationService aNewAccountValidation;
the field must be renamed and so the getter and setter methods
RegistrationController, UserManagementController class
@Autowired private UserValidationService aRegistrationValidation;
the same as for the previous clase
AccountManagmentService
the class must not have methods which are manipulating database disrespecting username.
public void deleteAll(){ accountRepository.deleteAll();
all methods must be executed against specific username
It is very dangerous to have such methods as : delete all.
AccountController class
@Autowired private AccountValidationService aNewAccountValidation;
the field must be renamed and so the getter and setter methods
RegistrationController, UserManagementController class
@Autowired private UserValidationService aRegistrationValidation;
the same as for the previous clase
AccountManagmentService
the class must not have methods which are manipulating database disrespecting username.
public void deleteAll(){ accountRepository.deleteAll();
all methods must be executed against specific username