mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
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:
parent
73cee225c6
commit
62dac9b1ee
|
@ -32,7 +32,7 @@ class User extends Model
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public static $rules = [
|
public static $rules = [
|
||||||
'username' => 'required|unique',
|
'username' => 'required|alpha_dash|unique',
|
||||||
'email' => 'required|email|unique',
|
'email' => 'required|email|unique',
|
||||||
'password' => 'required',
|
'password' => 'required',
|
||||||
'join_time' => 'date',
|
'join_time' => 'date',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user