commit cd4053c769e751d8647a98e18c3cea8dd182362f parent b42fc3221e789540f1a182e3e851c962106ddf61 Author: ms <ms@taler.net> Date: Fri, 17 Sep 2021 17:58:02 +0200 password hash check: fix parameters order Diffstat:
| M | sandbox/src/main/kotlin/tech/libeufin/sandbox/Auth.kt | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Auth.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Auth.kt @@ -29,7 +29,7 @@ fun authenticateRequest(request: ApplicationRequest): SandboxUserEntity { LibeufinErrorCode.LIBEUFIN_EC_AUTHENTICATION_FAILED ) } - CryptoUtil.checkPwOrThrow(password, username) + CryptoUtil.checkPwOrThrow(password, user.passwordHash) user } }