How to disallow users with a username containing test to login? I created a module but I'm looking to have this module to intercept a user log in. I want to prevent any users with "test" in their login name from using the site. Is there a way to do this?
Custom username validation would be an option


  allows to define a validation pattern for the username on registration. it's also possible to customize the error message on validation failure.