PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.2.0
Fluent Support – Helpdesk & Customer Support Ticket System v2.2.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 1.5.6 All 67 releases
fluent-support / app / Http / Controllers / TwofaController.php

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

25 lines 712 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\Http\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['login_passcode'] = $request->getSafe('login_passcode', 'sanitize_text_field', '');
14 $data['login_hash'] = $request->getSafe('login_hash', 'sanitize_text_field', '');
15
16 $verify = (new TwoFaHandler)->verify2FaEmailCode($data);
17 if(!$verify){
18 return $this->response([
19 'message' => __('Your provided code is not valid. Please try again', 'fluent-support')
20 ], 423);
21 }
22 }
23
24 }
25