Fix WebPW Command

Signed-off-by: Chaoscaot <max@maxsp.de>
This commit is contained in:
2026-02-09 09:28:14 +01:00
parent 46a11af6ca
commit 30b7bbc283
@@ -186,10 +186,10 @@ class SteamwarUser(id: EntityID<Int>): IntEntity(id) {
val salt = ByteArray(16)
random.nextBytes(salt)
val saltString = Base64.getEncoder().encode(salt)
val saltString = Base64.getEncoder().encodeToString(salt)
val hash = generateHash(value, salt)
val hashString = Base64.getEncoder().encode(hash)
val hashString = Base64.getEncoder().encodeToString(hash)
useDb {
passwordInternal = "$hashString:$saltString"