mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 17:06:28 +02:00
Few improvments
This commit is contained in:
parent
a8410b1b6a
commit
87301827bd
4 changed files with 12 additions and 10 deletions
|
@ -145,7 +145,7 @@ class User extends \descartes\Controller
|
|||
}
|
||||
|
||||
$email = $_POST['email'] ?? false;
|
||||
$password = $_POST['password'] ?? \controllers\internals\Tool::generate_password(rand(6, 12));
|
||||
$password = !empty($_POST['password']) ? $_POST['password'] : \controllers\internals\Tool::generate_password(rand(6, 12));
|
||||
$admin = $_POST['admin'] ?? false;
|
||||
$status = 'active';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue