Refactor password check and add cache clearance.

This commit is contained in:
2025-03-04 21:05:01 +01:00
parent f38b85f9cb
commit 9bc1f8b328
3 changed files with 3 additions and 1 deletions
@@ -61,6 +61,7 @@ fun Route.configureAuth() {
post {
val request = call.receive<UsernamePassword>()
SteamwarUser.clear()
val user = SteamwarUser.get(request.name)
val valid = user?.verifyPassword(request.password) ?: false