forked from mirrors/easyappointments
Random password for installation provider record.
This commit is contained in:
parent
5220e87249
commit
02628a2cbd
1 changed files with 5 additions and 2 deletions
|
@ -140,6 +140,9 @@ class Installation extends CI_Controller {
|
|||
];
|
||||
$services['id'] = $this->services_model->add($services);
|
||||
|
||||
$salt = generate_salt();
|
||||
$password = generate_random_string(100);
|
||||
|
||||
$sample_provider = [
|
||||
'first_name' => 'John',
|
||||
'last_name' => 'Doe',
|
||||
|
@ -150,8 +153,8 @@ class Installation extends CI_Controller {
|
|||
],
|
||||
'settings' => [
|
||||
'username' => 'johndoe',
|
||||
'password' => '59fe9d073a9c3c606a7e01e402dca4b49b6aa517bd0fdf940c46cb13a7b63dd0',
|
||||
'salt' => 'dc5570debc71fc1fe94b1b0aee444fcde5b8cb83d62a6a2b736ead6557d7a2e1',
|
||||
'password' => hash_password($salt, $password),
|
||||
'salt' => $salt,
|
||||
'working_plan' => '{"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"14:30","end":"15:00"}]},"saturday":null,"sunday":null}',
|
||||
'notifications' => FALSE,
|
||||
'google_sync' => FALSE,
|
||||
|
|
Loading…
Reference in a new issue