Browse Source

[fix] Authorize number in username

ljf (zamentur) 3 years ago
parent
commit
6680ddb3e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config_panel.toml

+ 1 - 1
config_panel.toml

@@ -60,7 +60,7 @@ name = "Auto-configuration"
         ask = "Username"
         type = "string"
         example = "camille"
-        pattern.regexp = '^[a-zA-Z_\-\\\.@]+$'
+        pattern.regexp = '^[a-zA-Z0-9_\-\\\.@]+$'
         pattern.error = "OpenVPN accept only alphabetic chars and -_\\.@"
         visible = 'config_file && match(config_file,"^\s*auth-user-pass\s")'