From be59f24d2d22deda4805b91d7f00690c2c448c1b Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Mon, 18 Sep 2023 10:27:14 +0200 Subject: [PATCH] Frontend: Use hashed password when creating user --- frontend.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend.pm b/frontend.pm index ab2ac01..d9fa11b 100644 --- a/frontend.pm +++ b/frontend.pm @@ -491,7 +491,7 @@ sub createUser { my $password = Digest::SHA::sha256_hex($aPassword); $query = $aConnection->prepare(qq(insert into users values($id, ?, ?, ?);)); - $query->execute($aName, $aPassword, $aPrivileges); + $query->execute($aName, $password, $aPrivileges); } sub httpServerWorker {