-
Notifications
You must be signed in to change notification settings - Fork 24
Login-related changes - needed for TOTP #21
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
base: FRAMEWORK_6_0
Are you sure you want to change the base?
Conversation
|
@ralflang, please review. |
|
Let's unbundle the login redesign from the fix. The feature needs more review and I don't want to merge it right now.
|
|
Split off "fix" part into PR #22 and tested separately. Please rebase and let's think about this more before spending more work.
|
50ce895 to
690a505
Compare
Done.
It should make things easier for administratos and developers.
No. Note,
Absolutely. It all started with the plan to simply add Instead we can now inject custom properties by using Not only this is cleaner, but also the code also applies The whole idea is to make login.inc unaware of exact names/parameters as much as possible by making sure all the custom things are kept in I would like to reiterate, that the proposed changes do not affect the existing logic or the resulted HTML output, just make things cleaner and easier to customize. I tested it and compared original and new version output byte-by-byte with several scenarios (including |
|
See #12 also. While this PR does not attempt to fix it, I believe it needs to be done before GA release. |
|
@ralflang, any chance you can merge this? |
|
This needs more testing. In my local instance the smartmobile login screen no longer worked after this patch. |
I just re-tested - the smartmobile login screen worked just fine for me. As far as I can see, it is not affected by this PR (it uses |
|
There is also room for further enhancements:
|
* Redesign code related to $loginParms handling in login.inc template * Move mode selector and most other hardcoded parameters from the template to login.php * Add support for extra properties via optional 'extra' parameter * Add support for optional div wrapper via 'div' parameter * Add autocomplete=off for OTP (second factor) input
|
@ralflang: please merge. |
|
@TDannhauer, please could you approve/merge? |
Proposed changes:
$loginParmshandling in login.inc templatelogin.phpautocomplete=offfor OTP (second factor) input