roundcubemail-plugins-kolab/plugins/kolab_2fa/lib/Kolab2FA
Christoph Erhardt 32f1865339 Fix TOTP authentication
Summary:
Kolab used to depend on version 4 of the otphp library, which returns
its computed OTP codes as integers. Hence, the kolab_2fa plugin converts
the user input to `int` in order to facilitate comparisons using the
`===` operator.

Starting with version 5, which is now bundled with Kolab, otphp returns
a string instead of an integer. Now the comparison is between an `int`
and a `string`, and thus consistently yields `false`. As a result, no
TOTP code is ever accepted.

Fix TOTP authentication by removing the now-obsolete conversion to
`int`.

Reviewers: machniak

Reviewed By: machniak

Differential Revision: https://git.kolab.org/D4370
2023-06-14 14:54:18 +02:00
..
Driver Fix TOTP authentication 2023-06-14 14:54:18 +02:00
Log Fix constant name (LOG_EMERGE -> LOG_EMERG) 2023-06-10 09:25:55 +02:00
OTP Initial version of the Kolab 2-Factor-Authentication plugin. 2015-06-04 15:53:04 +02:00
Storage Fix PHP8 warnings 2023-06-12 12:07:58 +02:00