1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

Allow username capitalisation to be changed

See https://discuss.flarum.org/d/1573-uppercase-lowercase-username-flagged-as-taken
This commit is contained in:
Toby Zerner
2015-12-05 15:43:40 +10:30
parent 262dc70fe1
commit 0cf000122f
2 changed files with 50 additions and 18 deletions

View File

@@ -134,6 +134,7 @@ class EditUserHandler
new UserWillBeSaved($user, $actor, $data)
);
$this->validator->setUser($user);
$this->validator->assertValid(array_merge($user->getDirty(), $validate));
$user->save();