Commit 37399a6 1 parent 202bd00 commit 37399a6 Copy full SHA for 37399a6
File tree 1 file changed +2
-0
lines changed
src/main/kotlin/com/faforever/userservice/backend/account
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import com.faforever.userservice.backend.hydra.HydraService
13
13
import com.faforever.userservice.backend.security.PasswordEncoder
14
14
import io.smallrye.config.ConfigMapping
15
15
import jakarta.enterprise.context.ApplicationScoped
16
+ import jakarta.transaction.Transactional
16
17
import jakarta.validation.constraints.NotNull
17
18
import org.slf4j.Logger
18
19
import org.slf4j.LoggerFactory
@@ -151,6 +152,7 @@ class LoginServiceImpl(
151
152
}
152
153
}
153
154
155
+ @Transactional
154
156
override fun resetPassword (userId : Int , newPassword : String ) {
155
157
userRepository.findById(userId)!! .apply {
156
158
password = passwordEncoder.encode(newPassword)
You can’t perform that action at this time.
0 commit comments