mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
heavier validation for username
This commit is contained in:
parent
8e7b056b84
commit
b9a63c48d6
|
@ -55,7 +55,13 @@ class User extends Model
|
|||
* @var array
|
||||
*/
|
||||
protected $rules = [
|
||||
'username' => 'required|alpha_dash|unique',
|
||||
'username' => [
|
||||
'required',
|
||||
'alpha_dash',
|
||||
'unique',
|
||||
'min:3',
|
||||
'max:30',
|
||||
],
|
||||
'email' => 'required|email|unique',
|
||||
'password' => 'required',
|
||||
'join_time' => 'date',
|
||||
|
|
Loading…
Reference in New Issue
Block a user