Bump version to 0.7.1
This commit is contained in:
parent
476e9ff8b3
commit
e39f88f6c6
3 changed files with 115 additions and 2 deletions
|
@ -55,7 +55,6 @@ class RegisterController extends Controller
|
|||
$this->validateUsername($data['username']);
|
||||
$usernameRules = [
|
||||
'required',
|
||||
'alpha_dash',
|
||||
'min:2',
|
||||
'max:15',
|
||||
'unique:users',
|
||||
|
@ -63,6 +62,10 @@ class RegisterController extends Controller
|
|||
if (!ctype_alpha($value[0])) {
|
||||
return $fail($attribute.' is invalid. Username must be alpha-numeric and start with a letter.');
|
||||
}
|
||||
$val = str_replace(['-', '_'], '', $value);
|
||||
if(!ctype_alnum($val)) {
|
||||
return $fail($attribute . ' is invalid. Username must be alpha-numeric.');
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue