Skip to content

Commit

Permalink
Merge branch 'fix/encode-password'
Browse files Browse the repository at this point in the history
  • Loading branch information
serjihsklovski committed Jun 25, 2017
2 parents 5cd9f1e + 58d1eaf commit 93b4dc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.teapot</groupId>
<artifactId>teapot-backend</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<parent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public User registerUser(@RequestBody User user,
}

user.setRegistrationDate(LocalDateTime.now());
user.setPassword(passwordEncoder.encode(user.getPassword()));

if (auth == null) {
user = userRepository.save(user);
verificationMailSender.createTokenAndSend(user, request.getLocale());
Expand Down

0 comments on commit 93b4dc3

Please sign in to comment.