Do you think we could have the option to restrict login by IP per role? Instead of just removing the role from the user, completely denying them login access, similar to restricting user login by ip?
Perhaps toggleable via a setting on the General Settings tab.
Issue fork restrict_by_ip-2825927
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2825927-deny-access
changes, plain diff MR !26
- 2825927-restrict-role-by
changes, plain diff MR !14
Comments
Comment #3
hazaI’m revisiting this old issue, as the underlying idea still seems relevant and useful.
In my use case, I needed this kind of behavior, so I’ve implemented a new checkbox on the “Restrict role by IP” configuration page. This checkbox allows administrators to toggle between the current “role removal” behavior and an alternative option to deny access to the user instead.
Happy to share the patch/merge request if there’s interest in reviewing or incorporating this functionality.
Comment #4
hazaComment #5
darvanenI can see how that would be useful, sure, happy to review work on this.
Comment #7
hazaI forgot to open the MR.
Here is the first approach to solve this.
Comment #8
darvanenComment #9
anybodyI also agree this would be useful for roles feature. @haza any plans to proceed here?
Comment #10
darvanenComment #14
darvanen