mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-02 19:49:24 +01:00
Fix icon fetched twice or forgotten during import
This commit is contained in:
parent
3724f3e87c
commit
e4c9e87522
@ -103,7 +103,7 @@ public function migrate(mixed $migrationPayload) : Collection
|
||||
|
||||
try {
|
||||
$twofaccounts[$key] = new TwoFAccount;
|
||||
$twofaccounts[$key]->fillWithOtpParameters($parameters);
|
||||
$twofaccounts[$key]->fillWithOtpParameters($parameters, Arr::has($parameters, 'iconExt'));
|
||||
if (Arr::has($parameters, 'iconExt')) {
|
||||
$twofaccounts[$key]->setIcon($parameters['icon_file'], $parameters['iconExt']);
|
||||
}
|
||||
|
@ -308,6 +308,7 @@
|
||||
this.form.account = twofaccount.account
|
||||
this.form.service = twofaccount.service
|
||||
this.form.otp_type = twofaccount.otp_type
|
||||
this.form.icon = twofaccount.icon
|
||||
this.form.secret = twofaccount.secret
|
||||
this.form.algorithm = twofaccount.algorithm
|
||||
this.form.digits = twofaccount.digits
|
||||
|
Loading…
Reference in New Issue
Block a user