add user status

This commit is contained in:
2016-04-08 21:48:53 +02:00
parent 859c898264
commit 1cbecb415b
6 changed files with 14 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ class UserCreate extends User{
[['role'], 'required'],
[['role'], 'string', 'max' => 20],
['status', 'default', 'value' => self::STATUS_ACTIVE],
['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]],
];
}
@@ -47,7 +49,7 @@ class UserCreate extends User{
public function attributeLabels(){
return [
'status' => 'Státusz',
'email' =>'E-mail',
'username' =>'Felhasználónév',
'created_at' =>'Létrehozás dátuma',