芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Controllers/User/SecurityController.php
all(),[ 'target' => "required|numeric", ])->validate(); $user = auth()->user(); try{ $user->update([ 'two_factor_status' => $user->two_factor_status ? 0 : 1, 'two_factor_verified' => true, ]); }catch(Exception $e) { return back()->with(['error' => ['Something went worng! Please try again']]); } return back()->with(['success' => ['Security Setting Updated Successfully!']]); } }