I struggle when logging in with Firefox. The first login is returned to the beginning without error. And the second login may be successful. If the user is unable to log in the second time, the user must delete the Firefox cache and site settings.
This is because I introduced two-factor authentication. I am not forcing the use of two-factor authentication. Some users have enabled it.
Other browsers are unlikely to have this symptom, and even if it occurs, the login will succeed the second time.
When the user can’t log in with Firefox (no cache or site settings are deleted). If the user has enabled two-factor authentication at this time, this phenomenon will not occur.
I think there is a cause in the two-factor authentication mechanism, but is there a solution?
Nextcloud 17.0.1, CentOS 7.7, PHP 7.3.11, nginx 1.14.2, Redis 5.0.2