Closed dittodhole closed 22 hours ago
The problem here is that when the set up of the biometric authentication fails (code pointer) the toggle remains checked. When you click the toggle again, it tries to deactivate biometric authentication but it's not found. An unhandled error is raised and you see the toast with the message "Oops! Something went wrong. Please try again later".
The issue goes away after refreshing the page because the set up never reached the db.
I will raise a PR to do two things in case the biometric authentication set up is not completed.
@dtslvr do you see any issue with the approach? How can I set up i18n of the string I need to use?
I will raise a PR to do two things in case the biometric authentication set up is not completed.
That would be great, @juanabascal! Do you have an idea why the registration may fail in the first place?
How can I set up i18n of the string I need to use?
You can set up the snackbar like this: import-activities-dialog.component.ts The english string is just fine, you don't have to worry about localization.
Do you have an idea why the registration may fail in the first place?
On my laptop (Macbook 2019) I made it fail by cancelling the browser's dialog to set up the biometric authentication.
After taking a second look to the issue description video I noticed that such dialog doesn't even appear on the screen. I'll dig deeper into this.
@dittodhole does you system have any biometric authentication hardware?
@dittodhole my guess is that the browser you are using doesn't support Authn. However, we could have more visibility on the issue if you log the actual error you're getting.
Just change this code with the following. The error message will be printed in the browser's console.
catchError((error: Error) => {
console.log(error);
this.update();
return EMPTY;
})
Bug Description
Just wanted to try out Biometric Authentication, did not configure anything, and then wanted to disable it again. Still experiencing #3439
To Reproduce
http://ghostfolio:3333
and login as admin/en/account
https://github.com/ghostfolio/ghostfolio/assets/429216/06dec3b9-2cb9-4b33-b2aa-cc7f801ae5b7
Expected behavior
No failure
Logs
Environment