add mobile api

This commit is contained in:
2022-02-03 23:38:39 +01:00
parent 858f7b03fc
commit 9856411844
73 changed files with 43307 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace mobileapi\models;
use yii\base\Model;
class PasswordChangeForm extends Model
{
public $passwordOld;
public $password;
/**
* @inheritdoc
*/
public function rules()
{
return [
// 123456123456123456123456123456123456
// passwordOld and password are both required
[['passwordOld', 'password'], 'required'],
[['passwordOld', 'password'], 'string', 'length' => [6, 24] ],
];
}
public function attributeLabels(){
return [
'passwordOld' => "Jelenlegi jelszó",
'password' => "Jelszó"
];
}
}