Fix change in bank account username
This commit is contained in:
parent
a11cf02463
commit
727170d246
1 changed files with 4 additions and 2 deletions
|
|
@ -92,9 +92,11 @@ class BankAccountController extends BaseController
|
|||
if ($publicId) {
|
||||
$bankAccount = BankAccount::scope($publicId)->firstOrFail();
|
||||
if ($username != $bankAccount->username) {
|
||||
// TODO update username
|
||||
$bankAccount->setUsername($username);
|
||||
$bankAccount->save();
|
||||
} else {
|
||||
$username = Crypt::decrypt($username);
|
||||
}
|
||||
$username = Crypt::decrypt($username);
|
||||
$bankId = $bankAccount->bank_id;
|
||||
} else {
|
||||
$bankAccount = new BankAccount;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue