mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Update the session language and remove password from the $account array
This commit is contained in:
parent
c85d47befc
commit
48122c4cd3
1 changed files with 7 additions and 1 deletions
|
@ -117,12 +117,18 @@ class Account extends EA_Controller {
|
||||||
'calendar_view'
|
'calendar_view'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (empty($account['password']))
|
||||||
|
{
|
||||||
|
unset($account['password']);
|
||||||
|
}
|
||||||
|
|
||||||
$this->users_model->save($account);
|
$this->users_model->save($account);
|
||||||
|
|
||||||
session([
|
session([
|
||||||
'user_email' => $account['email'],
|
'user_email' => $account['email'],
|
||||||
'username' => $account['settings']['username'],
|
'username' => $account['settings']['username'],
|
||||||
'timezone' => $account['timezone'],
|
'timezone' => $account['timezone'],
|
||||||
|
'language' => $account['language'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
response();
|
response();
|
||||||
|
|
Loading…
Reference in a new issue