Skip to content

Commit

Permalink
Update settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lewmilburn committed Nov 13, 2024
1 parent d337139 commit 978e713
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Processes/Saturn/AccountManager/Join.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if ($CSRF->Check()) {
$Username = $DB->Escape($_POST['username']);
$Email = $DB->Escape($_POST['email']);
$Password = password_hash($_POST['password'], PASSWORD_DEFAULT);
$Password = password_hash($_POST['password'], SECURITY_PASSWORD_ALGORITHM);
$UniqID = $UUID->Generate();

$Result = $DB->Insert('user', '`id`, `uuid`, `username`, `email`, `password`', "NULL, '".$UniqID."', '".$Username."', '".$Email."', '".$Password."'");
Expand Down
19 changes: 0 additions & 19 deletions Settings/Developer.php

This file was deleted.

3 changes: 3 additions & 0 deletions Settings/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false,
];

const SECURITY_PASSWORD_ALGORITHM = PASSWORD_DEFAULT;
const SECURITY_TOKEN_ALGORITHM = PASSWORD_DEFAULT;
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 978e713

Please sign in to comment.