mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-03 03:59:49 +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 {
|
try {
|
||||||
$twofaccounts[$key] = new TwoFAccount;
|
$twofaccounts[$key] = new TwoFAccount;
|
||||||
$twofaccounts[$key]->fillWithOtpParameters($parameters);
|
$twofaccounts[$key]->fillWithOtpParameters($parameters, Arr::has($parameters, 'iconExt'));
|
||||||
if (Arr::has($parameters, 'iconExt')) {
|
if (Arr::has($parameters, 'iconExt')) {
|
||||||
$twofaccounts[$key]->setIcon($parameters['icon_file'], $parameters['iconExt']);
|
$twofaccounts[$key]->setIcon($parameters['icon_file'], $parameters['iconExt']);
|
||||||
}
|
}
|
||||||
|
@ -308,6 +308,7 @@
|
|||||||
this.form.account = twofaccount.account
|
this.form.account = twofaccount.account
|
||||||
this.form.service = twofaccount.service
|
this.form.service = twofaccount.service
|
||||||
this.form.otp_type = twofaccount.otp_type
|
this.form.otp_type = twofaccount.otp_type
|
||||||
|
this.form.icon = twofaccount.icon
|
||||||
this.form.secret = twofaccount.secret
|
this.form.secret = twofaccount.secret
|
||||||
this.form.algorithm = twofaccount.algorithm
|
this.form.algorithm = twofaccount.algorithm
|
||||||
this.form.digits = twofaccount.digits
|
this.form.digits = twofaccount.digits
|
||||||
|
Loading…
Reference in New Issue
Block a user