[PROD-678] Authorization and password reset vulnerability fix (#4569)
* Fixed vulnerabilities for password reset and authorization
* Improvements to check user and credentials for null
* Correct messages and logs
* Improvements
* Reset Password Test: added delay after resetting password to synchronize test with server
* Executor removed from controller
* Correct method calling
* Formatting cleaned
mapper.writeValue(response.getWriter(),ThingsboardErrorResponse.of("Invalid username or password",ThingsboardErrorCode.AUTHENTICATION,HttpStatus.UNAUTHORIZED));
mapper.writeValue(response.getWriter(),ThingsboardErrorResponse.of("User account is not active",ThingsboardErrorCode.AUTHENTICATION,HttpStatus.UNAUTHORIZED));