The Rise of Contactless Payments:...
In recent years, contactless payments have surged in popularity, driven...
<?php
namespace App\Http\Controllers\User;
use Exception;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
class SecurityController extends Controller
{
public function google2FA() {
$page_title = "Two Factor Authenticator";
$qr_code = generate_google_2fa_auth_qr();
return view('user.sections.two-fa-security.index',compact(
'page_title',
'qr_code',
));
}
public function google2FAStatusUpdate(Request $request) {
$validated = Validator::make($request->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 wrong! Please try again']]);
}
return back()->with(['success' => ['Security Setting Updated Successfully!']]);
}
}
Blog Section
Dive into our blog to explore the cutting-edge trends in digital payments and NFC technology. Stay updated on the innovations that are revolutionizing transactions, boosting security, and making payments quicker and more convenient. Learn how these advancements are shaping the future of financial interactions and driving the global transition towards a cashless world.
In recent years, contactless payments have surged in popularity, driven...
As digital transactions proliferate, ensuring robust payment security is more critical than ever. Two foundational...
Digital wallets have fundamentally transformed how we manage money, offering a streamlined, secure, and highly...