Skip to content

Confusing message about blocking a user #16171

@Ruslan-Aleev

Description

@Ruslan-Aleev

Bug report

Summary

It happens that if a user has a simple login, for example, admin, then, as it seems to me, the login form is blocked due to "brute force" on the manager.

And in the login form a message pops up:
You have been blocked from the Manager by an administrator.

login_error

In the login.inc.php lexicon:
$_lang['login_blocked_admin'] = 'You have been blocked from the Manager by an administrator.';

But it turns out that admin blocked himself, even if there are no other users in the manager at all.

Those either the message is displayed incorrectly, or the logic is broken in the file https://github.com/modxcms/revolution/blob/3.x/core/src/Revolution/Processors/Security/Login.php.

Environment

MODX 2.x >

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-coreproposalProposal about improvement aka RFC. Need to be discussed before start implementation.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions