Problem/Motivation

When login is restricted or roles are removed from the logged user there is no information displayed to the end user

Proposed resolution

Here a patch that displays translatable message for both cases

CommentFileSizeAuthor
restrict_by_ip_user.png4.68 KBpaulguy
restrict_by_ip_role.png12.89 KBpaulguy
Command icon 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:

Comments

paulguy created an issue. See original summary.

anybody’s picture

Status: Active » Needs work
Issue tags: +Needs tests

Thanks @paulguy I think that's a great idea!

Still I think this should be configurable. I'd say best would be to even make the message configurable or maybe just add a checkbox. Maybe people might want to hide this message for security reasons to not give this information?
Maintainers should decide.

Furthermore it would be great to have tests to ensure it works as expected.

darvanen’s picture

Version: 8.x-4.x-dev » 9.x-dev
Assigned: Unassigned » darvanen

  • 0cca045e committed on 9.x
    Issue #3582618: Display messages when IP restriction removes roles or...
darvanen’s picture

Assigned: darvanen » Unassigned
Status: Needs work » Fixed

Oops, I meant to run that through the MR process not commit directly. Regardless, this done in 9.x now. Applying credit for everyone here.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.