1 | <?php |
||
20 | class OtpForm extends Model |
||
21 | { |
||
22 | |||
23 | use EnsureUserBehaviorAttachedTrait; |
||
24 | |||
25 | /** |
||
26 | * @var string an otp submit from end user |
||
27 | */ |
||
28 | public $otp; |
||
29 | |||
30 | /** |
||
31 | * @inheritDoc |
||
32 | * @throws \yii\base\InvalidConfigException |
||
33 | */ |
||
34 | 3 | public function init() |
|
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | 2 | public function rules() |
|
50 | |||
51 | /** |
||
52 | * Verify an otp is valid with current logged in user |
||
53 | * |
||
54 | * @return bool weather an otp property is valid. |
||
55 | */ |
||
56 | 2 | public function verify() |
|
66 | |||
67 | |||
68 | } |
||
69 |