https://kotlinlang.org logo
#ktor
Title
# ktor
s

Slackbot

05/24/2022, 9:38 PM
This message was deleted.
e

ephemient

05/24/2022, 11:05 PM
don't hash before verify
👍 1
d

dany giguere

05/24/2022, 11:32 PM
yep, here we go :
Copy code
val authenticatingUser = call.receive<AuthenticatingUser>()
val dbPassword = userDSL.getPassword(authenticatingUser.email)
val result: BCrypt.Result = BCrypt.verifyer().verify(authenticatingUser.password.toCharArray(), dbPassword)
3 Views