diff --git a/application/Config/Aauth.php b/application/Config/Aauth.php index ad48c5c..9e1168b 100644 --- a/application/Config/Aauth.php +++ b/application/Config/Aauth.php @@ -75,7 +75,7 @@ class Aauth extends BaseConfig | (default: '[a-zA-Z0-9]{3,}') */ public $userVerification = false; - public $userRegexPattern = '[a-zA-Z0-9]{3,}'; + public $userRegexPattern = '[a-zA-Z0-9]{3,}\s'; /* |-------------------------------------------------------------------------- diff --git a/tests/Aauth/Libraries/Aauth/UserTest.php b/tests/Aauth/Libraries/Aauth/UserTest.php index d26bb7c..6eee3e4 100644 --- a/tests/Aauth/Libraries/Aauth/UserTest.php +++ b/tests/Aauth/Libraries/Aauth/UserTest.php @@ -1,5 +1,6 @@ library = new Aauth(null, true); + $this->config = new AauthConfig(); $_COOKIE = []; $_SESSION = []; }