Skip to content
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

Version 5.0.1 doesn't display colored countdown segments #265

Closed
1 task done
rouilj opened this issue Dec 29, 2023 · 4 comments
Closed
1 task done

Version 5.0.1 doesn't display colored countdown segments #265

rouilj opened this issue Dec 29, 2023 · 4 comments
Labels
bug Something isn't working fixed The issue is fixed (in a coming release)
Milestone

Comments

@rouilj
Copy link
Contributor

rouilj commented Dec 29, 2023

Version

5.0.1

Details & Steps to reproduce

I deployed 5.0.1 (to fix #262) and I can log in again. If I look at the main dashboard, I have it configured
to show the 2FA number at all times. Neither of the two TOTP tokens (set to 30 second validity) shows
the colored pips underneath. One of them shows a single green pip, but it's not changing. Also waiting
a couple of minutes does not change the code. Refreshing does update the token but after refresh I have
no lit pips.

I don't see anything obviously failing in the console. Maybe some timed JS isn't running?

Expectation

Token should refresh every 30 seconds and the pips should progress across the display from green to red at the 30 second (refresh time) mark.

Error & Logs

Nothing in the log except a failed login attempt.

Execution environment

Date: Fri, 29 Dec 2023 00:24:48 +0000
userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Version: 5.0.1
Environment: local
Install path: /2fauth
Debug: true
Cache driver: file
Log channel: daily
Log level:
DB driver: sqlite
PHP version: 8.1.22
Operating system: Linux
interface: fpm-fcgi
Auth guard: web-guard
webauthn user verification: preferred
Trusted proxies: *

Running from docker behind a reverse proxy.

Containerization

  • Docker

Additional information

No response

@rouilj
Copy link
Contributor Author

rouilj commented Dec 29, 2023

Note in the demo app at: https://demo.2fauth.app/accounts, the pips are shown and the tokens are updated.
It is running 5.0.0.

@rouilj
Copy link
Contributor Author

rouilj commented Dec 29, 2023

Ah, after a forced refresh I get the following in the console:

Accounts-7fd0e2bf.js:6 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'generated_at')
    at Accounts-7fd0e2bf.js:6:39507
    at Array.forEach (<anonymous>)
    at Accounts-7fd0e2bf.js:6:39385

This looks time related...

Also if I change the settings to display just one token at a time, the pips do show there.

@rouilj rouilj mentioned this issue Dec 29, 2023
1 task
@Bubka Bubka added bug Something isn't working fixed The issue is fixed (in a coming release) labels Dec 29, 2023
@Bubka Bubka added this to the v5.0.2 milestone Dec 29, 2023
@Bubka
Copy link
Owner

Bubka commented Dec 29, 2023

Do you confirm that you have a HOTP account in your collection?

@rouilj
Copy link
Contributor Author

rouilj commented Dec 29, 2023

Yes, I have 2 TOTP and one HOTP account.

@Bubka Bubka closed this as completed in 9fa4142 Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed The issue is fixed (in a coming release)
Projects
Status: Released
Development

No branches or pull requests

2 participants