-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accounts page is empty (Console says: TypeError: a is null) #378
Comments
Hi, |
The problem is only with the /accounts page. /start page opens the form to add a new account normally. |
OK, great. {
"id": 2,
"group_id": null,
"otp_type": "totp",
"account": "[your_account_identifier]",
"service": "[name_of_the_service]",
"icon": "[name_of_the_service.png] or null",
"digits": 6,
"algorithm": "sha1",
"period": 30,
"counter": null
} Do you something weird, like an empty property or special characters, for example in the |
Thx. Is there space in the cloudron account property? |
Yes. |
what is the language set in your user preferences? |
Brazilian Portuguese (pt-br) Edit: At 2FAuth is "Browser preference" and my browser is in pt-br. |
How data are exported from authy? You get a txt or json file? a QR code? |
Authy doesn't export data, so I was just disabling 2fa on each site and enabling it manually using QR Code. |
Seams to be the same as #342 😞 Right after the registration of your Cloudflare 2FA, the |
Oh, it really seems to be the same error. Yes, after setting up Cloudflare I tested logging out and in (into Cloudflare) using 2FAuth and the whole process worked as expected. The problem started after the setup of the Cloudron account. |
ok. For me, having the Cloudron QR code that broke the app would be very useful. Would you agree to send it to me? I know this is a sensitive data, so you would have to disable 2FA on your Cloudron account first, this will make the QR code obsolete. |
Sure. Where can i get your address? |
contact-at-2fauth.app |
Received 👍🏻 Can you please also paste here your user prefs. You can copy them from |
|
Unfortunately I cannot reproduce the error 😞 The only difference between our setup is that I'm not using a docker+cloudron instance, all other settings are the same. The QR code you gave me registers without error, I don't understand. If you mind, could you delete your user account (from Can you also please check the app logs, they are stored in |
Hi! Next step would be to delete my user and recreate it as requested, but my users are managed in Cloudron and the login is made through OIDC, and I'd rather not messing with the users accounts in my Cloudron instance. My original intention was to use my own main Cloudron's account as the admin of 2FAuth (which I would never use) and create an unprivileged "2fa" user with a different and very strong password to interact with 2FAuth. Notice that 2fa user would hold the token for admin user (this shouldn't be a problem, but maybe it is related somehow). Today I reinstalled the app, which I already have tried a few times, but now I only created one user: the "2fa" admin. I will continue to add accounts and hope 2FAuth to keep working. If I get any more info about this issue I'll post here. Thanks again! (Just an unrelated suggestion: adding each account would be a lot easier/faster if I could just drag/drop the QR Codes. Right now I am saving the png manually and uploading using the form). EDIT: I've already added 14 accounts (and counting). Everything is working flawlessly now, apparently. |
Thx for the feedback and the explanations.
I have no idea how 2FAuth is integrated with Cloudron or how Cloudron works, but I think you were trying to find logs at Cloudron (or docker) level. The 2FAuth logs, when using the Docker image, are stored in the folder that is mapped between the host and the Docker container. It is called
Indeed, it may be an unsafe move depending on how Cloudron binds the users. But for the record: Deleting a 2FAuth user registered with OIDC only cleans up 2FAuth, it does not affect the account provider (Cloudron). By the way, my suggestion was not relevant because it is impossible to delete a 2FAuth user if that user is the only one to have the admin flag 😅
Great 👍🏻 |
Ok, I checked the integration thx to the Cloudron demo instance. You have several choices to enhance this setup. Using the Cloudron File Manager you can edit the 2FAuth env file in I would recommend to set LOG_CHANNEL to |
Hi!
Actually I tried multiple ways to read the logs, including accessing the docker instance via terminal and reading Docker logs (using Cloudron) was the only way that I managed to access it, but nothing there was really helpful (only Docker stuff and access logs).
Oh, you problably already know this, but you can also access all the code from the 2FAuth integration with Cloudron using its repository, here: https://git.cloudron.io/cloudron/2fauth-app
Thank you very much for the tips and attention. At this moment my 2FAuth is running really nice, so I won't bother changing the settings, but it is great to know this. I've already setup all of my accounts, made a backup of the exported JSON file and stored it safely with encryption, so even if the issue appears again I won't be locked out of my accounts. 😃 |
Version
5.2.0
Details & Steps to reproduce
I am migrating from Authy to 2FAuth.
I started adding the first account (Cloudflare) and everyting worked just fine, but then I tried to add a second account (a Cloudron user), which apparently was ok too, but as soon as I came back to the main page ("/accounts") it was empty.
The console was printing the error "TypeError: a is null" and now I can't access any of my codes.
Already tried refreshing the page and logging out/in in another browser.
Screenshot:
Expectation
"/accounts" page should list my accounts/codes, but is empty.
Error & Logs
No response
Execution environment
I installed 2FAuth using Cloudron with default settings.
Containerization
Additional information
No response
The text was updated successfully, but these errors were encountered: