-
Notifications
You must be signed in to change notification settings - Fork 301
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
Adding 2FA for webtrees attempt #2 #5039
base: main
Are you sure you want to change the base?
Conversation
Sorry if this is already included, but I couldn't find it. Just a personal opinion, but I would prefer to have an administrator option to enable (or not) 2FA on my site, before users are offered the option. |
It isn't there at present. What screen would that option appear on. Couldn't see anything obvious in control panel. |
Perhaps Control panel > Website > Sign-in and registration? Seems the most logical. |
Now added to code and pushed to repo (I hope) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5039 +/- ##
============================================
- Coverage 35.32% 35.30% -0.02%
- Complexity 11405 11414 +9
============================================
Files 1179 1179
Lines 47859 47902 +43
============================================
+ Hits 16905 16913 +8
- Misses 30954 30989 +35 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
I'm afraid I'm completely stuck on the errors phpstan gives on app/User.php 126 Binary operation "." between non-falsy-string and mixed results in an For line 126, I tried making saving $_SERVER['SERVER_NAME'] to a variable and concatenating that, but it still doesn't like it. Any tips appreciated. |
Used settype to fix this |
PHPstan is set on the "max" level, and it is not always possible to fix every issue.
You've closed the PR, so I can't see your code any more. Did you mean to do that? |
Adds ability for user to switch on preference in account which makes a QR code appear. This can be scanned by a Google authenticator app and the secret is saved. At next log in, user must enter the code for the site from the authenticator when they log in. Can be switched off from account too. Incorporated into setup wizard and any add/edit user functions.