mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 03:21:33 +01:00
Make sure that authenticated and authorized will not be saved into the file
This commit is contained in:
@@ -224,9 +224,10 @@ class User extends Data
|
||||
$this->undef('password');
|
||||
}
|
||||
|
||||
$this->undef('username');
|
||||
$file->save($this->items);
|
||||
$this->set('username', $username);
|
||||
$data = $this->items;
|
||||
unset($data['username'], $data['authenticated'], $data['authorized']);
|
||||
|
||||
$file->save($data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user