Spaces:
Running
Running
Commit History
-
<!DOCTYPE html>
Verified signature<html lang="ar"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>FortiLock - قفل التطبيقات</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="lock-screen"> <h1>🔒 FortiLock</h1> <p>ادخل الرمز للوصول إلى التطبيقات</p> <input type="password" id="pinInput" placeholder="••••" maxlength="4"> <button id="unlockBtn">فتح</button> <p id="message"></p> </div> <script src="script.js"></script> </body> </html>2bda0cc -
import 'package:flutter/material.dart';
Verified signatureimport 'package:local_auth/local_auth.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'security.dart'; import 'home.dart'; class LockScreen extends StatefulWidget { @override _LockScreenState createState() => _LockScreenState(); } class _LockScreenState extends State<LockScreen> { final TextEditingController pinController = TextEditingController(); final LocalAuthentication auth = LocalAuthentication(); Future<void> authenticateWithFingerprint() async { bool authenticated = await auth.authenticate( localizedReason: 'الرجاء التحقق بالبصمة', options: const AuthenticationOptions( biometricOnly: true, ), ); if (authenticated) { Navigator.pushReplacement( context, MaterialPageRoute(builder: (_) => Home())); } } Future<void> checkPin() async { SharedPreferences prefs = await SharedPreferences.getInstance(); String? savedPin = prefs.getString('pin'); if (savedPin == Security.ha…7e6e3fc