mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-24 21:44:22 +00:00
remove username blacklist validation from login action
This commit is contained in:
parent
332f7416f0
commit
eec247432c
@ -618,18 +618,6 @@ class UserController extends AbstractController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate username blacklist
|
|
||||||
if (in_array(mb_strtolower($username), array_map('mb_strtolower', (array) explode('|', $this->getParameter('app.add.user.name.blacklist')))))
|
|
||||||
{
|
|
||||||
return $this->redirectToRoute(
|
|
||||||
'user_login',
|
|
||||||
[
|
|
||||||
'username' => $request->get('username'),
|
|
||||||
'error' => $translator->trans('Username reserved by node!')
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate username exist
|
// Validate username exist
|
||||||
if (!$hash = $this->_hash($client, $namespace, $username))
|
if (!$hash = $this->_hash($client, $namespace, $username))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user