マンコ

This commit is contained in:
2025-12-12 01:42:50 +09:00
parent 95db2f73d8
commit 83a6d5c3de
3 changed files with 6 additions and 5 deletions

View File

@@ -173,7 +173,6 @@ class User {
$tmpl->assign('custCss', false);
$tmpl->assign('menu', $this->getMenu());
$tmpl->assign('description', $description);
$tmpl->assign('error', $error);
$tmpl->assign('user', $user);
$tmpl->assign('u', $u);

View File

@@ -189,7 +189,7 @@ class Auth {
$user = new \stdClass;
$user->id = $lastId;
$user->username = $username;
$user->password = password_hash($password, $algo);
$user->password = password_hash($password, $this->algo);
$user->avatar = '';
$user->email = $email;
$user->regDate = time();
@@ -219,8 +219,8 @@ class Auth {
return \Result::Error('エラー:ユーザー名又はパスワードが一致していません。');
}
if (password_needs_rehash($userData->password, $algo)) {
$userData->password = password_hash($password, $algo);
if (password_needs_rehash($userData->password, $this->algo)) {
$userData->password = password_hash($password, $this->algo);
$path = $this->dataDir.$this->id.'.'.$userData->username.'.json';
$json = json_encode($userData, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);