209. Testing in Production (#32)
This commit is contained in:
@ -166,5 +166,11 @@ WantedBy=multi-user.target
|
|||||||
- To enable your service on every reboot
|
- To enable your service on every reboot
|
||||||
- `sudo systemctl enable supportapi.service`
|
- `sudo systemctl enable supportapi.service`
|
||||||
|
|
||||||
|
#### 209. Testing in Production
|
||||||
|
|
||||||
|
- Test with:
|
||||||
|
- Username: `art.shyshkin`
|
||||||
|
- Password: `17aH!?o>CJ`
|
||||||
|
- and another
|
||||||
|
- Username: `shyshkin.art`
|
||||||
|
- Password: `5C<"0dVx=>`
|
||||||
|
|||||||
@ -153,6 +153,7 @@ public class UserServiceImpl implements UserService {
|
|||||||
validateNewUsernameAndEmail(username, email);
|
validateNewUsernameAndEmail(username, email);
|
||||||
|
|
||||||
String rawPassword = generatePassword();
|
String rawPassword = generatePassword();
|
||||||
|
log.debug("Added `{}` with Raw Password: {}", username, rawPassword);
|
||||||
String encodedPassword = passwordEncoder.encode(rawPassword);
|
String encodedPassword = passwordEncoder.encode(rawPassword);
|
||||||
|
|
||||||
User newUser = userMapper.toEntity(userDto);
|
User newUser = userMapper.toEntity(userDto);
|
||||||
|
|||||||
Reference in New Issue
Block a user