-
Notifications
You must be signed in to change notification settings - Fork 63
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
PHP 8 Support #426
Comments
I don't have time to maintain this app right now. |
Wow, that had quite severe consequences for me after migrating to NC21 and PHP8: I use 'enforce 2FA'. One of my users had enabled SMS (via gateway) only (not even backup codes). He could not log on even as I put him in a group that was excluded from enforcement: He only gets a warning that a configured 2FA provider isn't available and a button to set up 2FA – but pressing it results in the same dialog. (1st/user deadlock situation) So I tried to clean the 2FA associations using OCC:
Obviously without result, probably because the app is not working due to NC21/PHP8 incompatibilities. (2nd/admin deadlock situation) So I tried to disable twofactor_gateway, but occ yielded 'no such provider id'. In the end, I just deleted the app folder but even that didn't solve the above user issue. Well, yes, I could delete a line in the database, but I try to avoid that at all cost to keep my DB consistent. In my opinion, this is a general design issue since it happens that apps aren't maintained temporarily or permanently (see Christoph's message above). In such case, Nextcloud should provide proper means to delete associations independent of the availability of apps that were available in a former NC version. Question: Does this belong here or should a bug be opened somewhere else? |
I'm not sure I can follow. Yes, this app is mostly community driven, hence at times we can do more, other times less maintenance. The app isn't released for Nextcloud 21 nor php8, so we also do not overpromise. Ref https://apps.nextcloud.com/apps/twofactor_gateway. |
@ChristophWurst Sorry, no offense intended. I just think that the overall system NC (not the app) should provide means to mitigate culprits experienced from "upgrades + no longer available apps". This is a general requirement to long-term system stability. |
None taken :) We didn't intentionally abandon the app. We still want to make it available to people. But at this point there are no volunteers to drive the project, hence it stalled. |
Changed Telegram API Class to one not having a Guzzle requirement. Tested with NC 21.0.0 on PHP 8.0.3 (on Alpine Linux Docker Container). Fixes nextcloud#426 and nextcloud#425
Can (at least) one of you verify my PR in #438 is working? I tested it with a fresh installation but it would be nice, if you could verify... |
I downloaded the contents of your PR and replaced my twofactor_gateway folder within the
I don't see anything relevant in my server logs, though, to identify what the error or problem could be, as the only log line I see is:
Nothing else shows up on PHP's log or in Apache's error.log. Probably just replacing the old app with the new files might not be enough, so any pointers on how to update this in a live installation will help test the app there so we can provide feedback on the PR. |
See my Comment here. You might want to try with a fresh app installation by:
|
I have checked this on NC21 with PHP8.0, on an installation that was running version 0.17 of twofactor_gateway, and with the instructions stated, I can confirm it worked for me flawlessly. |
I confirm that boppys modified app works fine for SMS on PHP8 (Arch NGINX PHP-FPM MariaDB) with NC 21.0.2. |
Changed Telegram API Class to one not having a Guzzle requirement. Tested with NC 21.0.0 on PHP 8.0.3 (on Alpine Linux Docker Container). Fixes nextcloud#426 and nextcloud#425
Related to #425 php8 support was introduced in v21. Thanks
The text was updated successfully, but these errors were encountered: