remove spaces from password
This commit is contained in:
1 parent
3daeae0293
commit
eb09f95ff8
2 files changed
+23
No files matched your search
@@ -64,6 +64,12 @@ class UserCard extends \common\models\UserCard
|
||||
}
|
||||
}
|
||||
|
||||
public function beforeSave($insert)
|
||||
{
|
||||
$this->salary = str_replace(' ', '', \Yii::$app->request->post('UserCard')['salary']);
|
||||
return parent::beforeSave($insert); // TODO: Change the autogenerated stub
|
||||
}
|
||||
|
||||
public function afterSave($insert, $changedAttributes)
|
||||
{
|
||||
$post = \Yii::$app->request->post('UserCard');
|
||||
|
||||
Reference in new issue
Block a user