Failed to save user : Passwords containing a backslash are not supported by MySQL

How to reproduce the bug:

  • Go to Virtualmin -> server.example.com -> Edit user -> Add a user to this server.
  • Fill out required files and enter a password with backslash (example: v4$~J[Pc)(E%Gfy=O=<fNVzXHOy[:B8)Hs9\fUS/).
  • Click on [ + Create].

Result is: Failed to save user : Passwords containing a backslash are not supported by MySQL

As far as I know this user is not intended to access the MySQL, so this is not what should happen.

Status: 
Active

Comments

The reason for this check is that MySQL access could be enabled for this user later, and it's simpler to prevent use of backslashes in passwords up-front.