features/fiche_refonte #254
@@ -89,7 +89,7 @@ public class UserServiceImpl implements UserService {
|
||||
user.setTokenDate(LocalDateTime.now());
|
||||
String token= stringService.getUniqueString();
|
||||
user.setToken(token);
|
||||
userRepository.save(user);
|
||||
user=userRepository.save(user);
|
||||
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class UserServiceImpl implements UserService {
|
||||
user.getUsername(),
|
||||
reseturl + token);
|
||||
|
||||
return userRepository.findUserToDtoById(userPaylaodWeb.getId()).orElse(null);
|
||||
return userRepository.findUserToDtoById(user.getId()).orElse(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#spring.profiles.active=${SPRING_PROFILES_ACTIVE}
|
||||
spring.profiles.active=${SPRING_PROFILES_ACTIVE}
|
||||
#spring.profiles.active=abomey
|
||||
spring.profiles.active=test
|
||||
#spring.profiles.active=test
|
||||
spring.jpa.properties.hibernate.id.new_generator_mappings=false
|
||||
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
|
||||
spring.jpa.open-in-view=false
|
||||
|
||||
Reference in New Issue
Block a user