heavier validation for username

This commit is contained in:
Daniel Klabbers 2015-09-24 23:07:30 +02:00 committed by Franz Liedke
parent 8e7b056b84
commit b9a63c48d6

View File

@ -55,7 +55,13 @@ class User extends Model
* @var array * @var array
*/ */
protected $rules = [ protected $rules = [
'username' => 'required|alpha_dash|unique', 'username' => [
'required',
'alpha_dash',
'unique',
'min:3',
'max:30',
],
'email' => 'required|email|unique', 'email' => 'required|email|unique',
'password' => 'required', 'password' => 'required',
'join_time' => 'date', 'join_time' => 'date',