add mobile api services: virtual-key-page and ticket-page
This commit is contained in:
@@ -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!' );
|
||||
|
||||
Reference in New Issue
Block a user