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