Skip to content

Logged out after inputting 2FA code #206

Open
@Ansellmo

Description

Hi everyone,

I've installed and configured the plugin on my roundcube server. I use it on a test account with Google Authentificator, and after inputting the code, I'm logged out. What should I do?

Activity

Ansellmo

Ansellmo commented on Nov 20, 2024

@Ansellmo
Author

UPGRADE!
I hadn't seen it, but after trying to connect, there's this message in the bottom right-hand corner, here's the translation:
You have successfully ended this session

image

o1ramsky

o1ramsky commented on Nov 21, 2024

@o1ramsky

@Ansellmo

Check the time on the server. I'm just after seeing the same behavior.

Ansellmo

Ansellmo commented on Nov 22, 2024

@Ansellmo
Author

if I live in France, my server must be set to the French time zone?

o1ramsky

o1ramsky commented on Nov 22, 2024

@o1ramsky

The zone does not matter if it converts properly to the current UTC.

Ansellmo

Ansellmo commented on Nov 22, 2024

@Ansellmo
Author

Server time is good. Displayed date and time are correct

Ansellmo

Ansellmo commented on Nov 22, 2024

@Ansellmo
Author

I have no error messages in the error.log file. Could this be due to a deprecated element?

[22-Nov-2024 11:20:52 UTC] PHP Deprecated: Sabre\Xml\Deserializer\keyValue(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 60 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: Sabre\Xml\Deserializer\enum(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 151 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: roundcube_caldav::add_ics_event_to_caldav_server(): Implicitly marking parameter $href as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/roundcube_caldav.php on line 1359 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_start as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_end as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: find_identity_matching_with_attendee_or_organizer(): Implicitly marking parameter $event_on_server as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/set_response.php on line 410 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in /usr/local/www/roundcube/program/lib/Roundcube/rcube_session.php on line 119 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: MStilkerich\CardDavClient\Config::init(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/mstilkerich/carddavclient/src/Config.php on line 72 [22-Nov-2024 11:20:52 UTC] PHP Deprecated: MStilkerich\CardDavClient\Config::init(): Implicitly marking parameter $httplogger as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/mstilkerich/carddavclient/src/Config.php on line 72 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: Sabre\Xml\Deserializer\keyValue(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 60 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: Sabre\Xml\Deserializer\enum(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 151 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: roundcube_caldav::add_ics_event_to_caldav_server(): Implicitly marking parameter $href as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/roundcube_caldav.php on line 1359 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_start as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_end as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: find_identity_matching_with_attendee_or_organizer(): Implicitly marking parameter $event_on_server as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/set_response.php on line 410 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in /usr/local/www/roundcube/program/lib/Roundcube/rcube_session.php on line 119 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: MStilkerich\CardDavClient\Config::init(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/mstilkerich/carddavclient/src/Config.php on line 72 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: MStilkerich\CardDavClient\Config::init(): Implicitly marking parameter $httplogger as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/mstilkerich/carddavclient/src/Config.php on line 72 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: Creation of dynamic property calendar::$dst_active is deprecated in /usr/local/www/roundcube/plugins/calendar/calendar.php on line 108 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: Sabre\Xml\Deserializer\keyValue(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 60 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: Sabre\Xml\Deserializer\enum(): Implicitly marking parameter $namespace as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/carddav/vendor/sabre/xml/lib/Deserializer/functions.php on line 151 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: roundcube_caldav::add_ics_event_to_caldav_server(): Implicitly marking parameter $href as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/roundcube_caldav.php on line 1359 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_start as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: change_date_ics(): Implicitly marking parameter $offset_end as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/ics_file_modification.php on line 98 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: find_identity_matching_with_attendee_or_organizer(): Implicitly marking parameter $event_on_server as nullable is deprecated, the explicit nullable type must be used instead in /usr/local/www/roundcube/plugins/roundcube_caldav/lib/php/set_response.php on line 410 [22-Nov-2024 11:21:08 UTC] PHP Deprecated: session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated in /usr/local/www/roundcube/program/lib/Roundcube/rcube_session.php on line 119

o1ramsky

o1ramsky commented on Nov 22, 2024

@o1ramsky

It is likely related to the PHP version you are running. I have PHP 8.2.25 and do not see these.

Ansellmo

Ansellmo commented on Nov 22, 2024

@Ansellmo
Author

I have roundcube installed on my freebsd server via the pkg package roundcube-contextmenu-php84-1.6.1 and roundcube-twofactor_gauthenticator-php84-g20231119. And I have php 8.4.0rc4 installed on the server as mentioned in the requirements https://ports.freebsd.org/cgi/ports.cgi?query=roundcube-php84&stype=all&sektion=all

Ansellmo

Ansellmo commented on Nov 26, 2024

@Ansellmo
Author

It is likely related to the PHP version you are running. I have PHP 8.2.25 and do not see these.

I did a new installation with php 8.2.26, I no longer have errors related to the twofactor_gauthentificator module. But I'm still logged out after entering the code for the 2FA.
But there's this depreciation message linked to the rounducube-calendar-kolab module after being logged out in the files

PHP Deprecated: Creation of dynamic property calendar::$dst_active is deprecated in /usr/local/www/roundcube/plugins/calendar/calendar.php on line 108

Ansellmo

Ansellmo commented on Nov 27, 2024

@Ansellmo
Author

Do the cookies need to have the SameSite=None attribute for this plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Logged out after inputting 2FA code · Issue #206 · alexandregz/twofactor_gauthenticator