YunoHost-Apps / 2FAuth_ynh

2FAuth package for YunoHost
https://docs.2fauth.app/
GNU General Public License v3.0
3 stars 5 forks source link

Can´t register webauthn device #34

Closed pjpmosteiro closed 1 year ago

pjpmosteiro commented 1 year ago

Describe the bug

Can´t enroll webauth device (yubikey or windows FIDO)

Context

Steps to reproduce

Logs

image

stepcellwolf commented 1 year ago

Hi same here I'm having this issue with yubikey and iPhone. I have reported the issue here too: https://github.com/Bubka/2FAuth/issues/218

CptNemo1337 commented 1 year ago

I have the same error here and can't figure out how to fix

Bubka commented 1 year ago

Hi,

Some values are missing in the file .env.example of this repo compare to the 2FAuth one. I pushed a commit on a fork (see https://github.com/Bubka/2FAuth_ynh/commit/65032cd7e661ed8661269bcab12a79fcc3e48dfd) and it works with a fresh install on my yunohost instance.

As the .env.example is just a template cloned during the installation process to get the .env file, this is not enough to fix your 2FAuth_ynh apps. You can reproduced changes from my commit to your .env file, it should fix the issue on your instances. On my side I will change the way 2FAuth handles those missing values to get a global fix.

@ericgaspar Let me know if you are interested in getting a PR for https://github.com/Bubka/2FAuth_ynh/commit/65032cd7e661ed8661269bcab12a79fcc3e48dfd

ericgaspar commented 1 year ago

I have added https://github.com/Bubka/2FAuth_ynh/commit/65032cd7e661ed8661269bcab12a79fcc3e48dfd modifications to .en file in #38

pjpmosteiro commented 1 year ago

I edited the .env file as @Bubka says, but same error, also with new accounts. What I might be doing wrong?

Bubka commented 1 year ago

The app cache needs to be refreshed by running php artisan config:clear in a terminal. If you can't run the php command, remove the content of [2FAuth_install_dir]\storage\framework\cache\data\.

pjpmosteiro commented 1 year ago

The app cache needs to be refreshed by running php artisan config:clear in a terminal. If you can't run the php command, remove the content of [2FAuth_install_dir]\storage\framework\cache\data\.

Oops, I knew I was forgetting something :D

Issue solved, it seems.

image