add mobile api services: virtual-key-page and ticket-page

This commit is contained in:
2022-02-20 20:34:35 +01:00
parent ac5076534b
commit ae2924a4bd
5 changed files with 142 additions and 3 deletions

View File

@@ -117,6 +117,7 @@ class KeyToggleForm extends Model
$assignment->id_key = $this->keyModel->id_key;
/** @noinspection PhpUndefinedClassInspection */
$assignment->id_user = \Yii::$app->user->id;
$assignment->virtual_key = uniqid(null,true);
$assignment->save(false);
/** @noinspection PhpUndefinedClassInspection */
\Yii::$app->session->setFlash ( 'success', 'Kulcs kiadva!' );