Skip to content

Commit 37399a6

Browse files
committed
Hotfix #2 for #377
1 parent 202bd00 commit 37399a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/com/faforever/userservice/backend/account/LoginService.kt

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.faforever.userservice.backend.hydra.HydraService
1313
import com.faforever.userservice.backend.security.PasswordEncoder
1414
import io.smallrye.config.ConfigMapping
1515
import jakarta.enterprise.context.ApplicationScoped
16+
import jakarta.transaction.Transactional
1617
import jakarta.validation.constraints.NotNull
1718
import org.slf4j.Logger
1819
import org.slf4j.LoggerFactory
@@ -151,6 +152,7 @@ class LoginServiceImpl(
151152
}
152153
}
153154

155+
@Transactional
154156
override fun resetPassword(userId: Int, newPassword: String) {
155157
userRepository.findById(userId)!!.apply {
156158
password = passwordEncoder.encode(newPassword)

0 commit comments

Comments
 (0)