Usernames must only contain alphanumeric chars/dashes/underscores

Perhaps we can relax this a little bit, but right now these are the
only characters that are parsed for @mentions anyway
This commit is contained in:
Toby Zerner 2015-06-04 11:19:23 +09:30
parent 73cee225c6
commit 62dac9b1ee

View File

@ -32,7 +32,7 @@ class User extends Model
* @var array
*/
public static $rules = [
'username' => 'required|unique',
'username' => 'required|alpha_dash|unique',
'email' => 'required|email|unique',
'password' => 'required',
'join_time' => 'date',