mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02: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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user