Skip to content

Commit

Permalink
Hotfix #2 for #377
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Jan 20, 2025
1 parent 202bd00 commit 37399a6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.faforever.userservice.backend.hydra.HydraService
import com.faforever.userservice.backend.security.PasswordEncoder
import io.smallrye.config.ConfigMapping
import jakarta.enterprise.context.ApplicationScoped
import jakarta.transaction.Transactional
import jakarta.validation.constraints.NotNull
import org.slf4j.Logger
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -151,6 +152,7 @@ class LoginServiceImpl(
}
}

@Transactional
override fun resetPassword(userId: Int, newPassword: String) {
userRepository.findById(userId)!!.apply {
password = passwordEncoder.encode(newPassword)
Expand Down

0 comments on commit 37399a6

Please sign in to comment.