Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice to be able to force the user to login on the login page. I'm adding a patch that does just that.
Comment | File | Size | Author |
---|---|---|---|
#5 | commerce_extra-force-login-1865056-5.patch | 1.88 KB | 5n00py |
#4 | commerce_extra-force-login-1865056-4.patch | 1.71 KB | bennybobw |
#2 | issue-1865056.txt | 1.12 KB | spiffl |
#1 | commerce_extra-force-login-1865056-2.patch | 1.47 KB | bennybobw |
Comments
Comment #1
bennybobw CreditAttribution: bennybobw commentedHere's a small patch.
Comment #2
spiffl CreditAttribution: spiffl commentedI was having difficulties to apply the patch by bennybobw so here's the same thing rewritten in plain text with a minor adjustment.
Comment #3
iMiksuHmm, that looks almost good, but I think we need to remove the new variable (
commerce_extra_login_page_force_login
) when uninstalling the module.Comment #4
bennybobw CreditAttribution: bennybobw commentedFixed my patch issue. Here's the rerolled patch
Comment #5
5n00py CreditAttribution: 5n00py commentedI fixed patch (formatting and file paths).
When I uncheck setting, form still require login. It need to be fixed.