mirror of
https://github.com/humhub/humhub.git
synced 2025-02-06 08:19:03 +01:00
Merge branch 'develop' of github.com:humhub/humhub into develop
This commit is contained in:
commit
a1afe047b2
@ -42,3 +42,4 @@
|
|||||||
- Enh #4671: Implemented live poll result sharing by BroadCastChannel
|
- Enh #4671: Implemented live poll result sharing by BroadCastChannel
|
||||||
- Enh #4829: Renamed account "Security" page and make it optional
|
- Enh #4829: Renamed account "Security" page and make it optional
|
||||||
- Enh #4818: Added database related checks (Driver, Collation, Table Engine)
|
- Enh #4818: Added database related checks (Driver, Collation, Table Engine)
|
||||||
|
- Fix #4831: Validate username by pattern only on change or for new users
|
||||||
|
@ -150,7 +150,9 @@ class User extends ContentContainerActiveRecord implements IdentityInterface, Se
|
|||||||
[['username'], 'unique'],
|
[['username'], 'unique'],
|
||||||
[['username'], 'string', 'max' => $userModule->maximumUsernameLength, 'min' => $userModule->minimumUsernameLength],
|
[['username'], 'string', 'max' => $userModule->maximumUsernameLength, 'min' => $userModule->minimumUsernameLength],
|
||||||
// Client validation is disable due to invalid client pattern validation
|
// Client validation is disable due to invalid client pattern validation
|
||||||
[['username'], 'match', 'pattern' => $userModule->validUsernameRegexp, 'message' => Yii::t('UserModule.base', 'Username contains invalid characters.'), 'enableClientValidation' => false],
|
[['username'], 'match', 'pattern' => $userModule->validUsernameRegexp, 'message' => Yii::t('UserModule.base', 'Username contains invalid characters.'), 'enableClientValidation' => false, 'when' => function ($model, $attribute) {
|
||||||
|
return $model->getAttribute($attribute) !== $model->getOldAttribute($attribute);
|
||||||
|
}],
|
||||||
[['status', 'created_by', 'updated_by', 'visibility'], 'integer'],
|
[['status', 'created_by', 'updated_by', 'visibility'], 'integer'],
|
||||||
[['tags'], 'string'],
|
[['tags'], 'string'],
|
||||||
[['guid'], 'string', 'max' => 45],
|
[['guid'], 'string', 'max' => 45],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user