| 1 | <?php |
||
| 20 | trait EnsureUserBehaviorAttachedTrait |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array|string|User an user component id or an user instance need to verify otp of identity. |
||
| 25 | */ |
||
| 26 | public $user = 'user'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Ensure user object had been attach `vxm\mfa\Behavior` |
||
| 30 | * |
||
| 31 | * @throws InvalidConfigException |
||
| 32 | */ |
||
| 33 | 7 | protected function ensureUserBehaviorAttached() |
|
| 45 | |||
| 46 | } |
||
| 47 |