Frontend: Use hashed password when creating user

This commit is contained in:
mrkubax10 2023-09-18 10:27:14 +02:00
parent 0a60329617
commit be59f24d2d

View File

@ -491,7 +491,7 @@ sub createUser {
my $password = Digest::SHA::sha256_hex($aPassword); my $password = Digest::SHA::sha256_hex($aPassword);
$query = $aConnection->prepare(qq(insert into users values($id, ?, ?, ?);)); $query = $aConnection->prepare(qq(insert into users values($id, ?, ?, ?);));
$query->execute($aName, $aPassword, $aPrivileges); $query->execute($aName, $password, $aPrivileges);
} }
sub httpServerWorker { sub httpServerWorker {