1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Bug fixes

This commit is contained in:
Hillel Coren 2019-02-19 12:55:39 +02:00
parent 6fddd3a815
commit 2d4769137f
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class HandleUserSettingsChanged
$users = $this->accountRepo->loadAccounts(Auth::user()->id);
Session::put(SESSION_USER_ACCOUNTS, $users);
if ($event->user && $event->user->confirmed && $event->user->isEmailBeingChanged()) {
if ($event->user && $event->user->isEmailBeingChanged()) {
$this->userMailer->sendConfirmation($event->user);
$this->userMailer->sendEmailChanged($event->user);

View File

@ -220,6 +220,7 @@ class UserAccountTransformer extends EntityTransformer
'has_custom_design1' => (bool) $account->custom_design1,
'has_custom_design2' => (bool) $account->custom_design2,
'has_custom_design3' => (bool) $account->custom_design3,
'enable_portal_password' => (bool) $account->enable_portal_password,
];
}
}