PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 1.10.3
Fluent Support – Helpdesk & Customer Support Ticket System v1.10.3
2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 All 68 releases
fluent-support / app / Http / Controllers / TwofaController.php

TwofaController.php in Fluent Support – Helpdesk & Customer Support Ticket System 1.10.3, at app/Http/Controllers/TwofaController.php

26 lines 706 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace FluentSupport\App\Http\Controllers;
3
4 use FluentSupport\Framework\Request\Request;
5 use FluentSupport\App\Hooks\Handlers\TwoFaHandler;
6
7
8
9 class TwofaController extends Controller
10 {
11 public function verify2fa ( Request $request )
12 {
13 $data = $request->get();
14 $data['login_passcode'] = sanitize_text_field($data['login_passcode']);
15 $data['login_hash'] = sanitize_text_field($data['login_hash']);
16
17 $verify = (new TwoFaHandler)->verify2FaEmailCode($data);
18 if(!$verify){
19 return $this->response([
20 'message' => __('Your provided code is not valid. Please try again', 'fluent-support')
21 ], 423);
22 }
23 }
24
25 }
26