Fixed DB writing

This commit is contained in:
Torsten Schulz
2024-04-17 08:13:31 +02:00
parent 6b27f094a2
commit c8475be001

View File

@@ -46,7 +46,7 @@ class Register extends Renderer {
protected function writeToDb(): void {
$salt = $this->generateRandomString();
$encryptedName = $this->encode(trim(filter_input(INPUT_POST, 'fullname', FILTER_SANITIZE_STRING), $salt));
$encryptedName = $this->encode(trim(filter_input(INPUT_POST, 'fullname', FILTER_SANITIZE_STRING)), $salt);
$email = strtolower(trim(filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL)));
$encryptedEmail = $this->encode($email, $salt);
$query = sprintf("INSERT INTO ffajs.`user` (username, password, realname, email, active, save_data_accepted, salt, color_id) "