Update: 2026-06-25 18:53:08

This commit is contained in:
Hamza-Ayed
2026-06-25 18:53:08 +03:00
parent 85ff15cabe
commit 4a6b6d52a3
2 changed files with 8 additions and 6 deletions

View File

@@ -50,7 +50,9 @@ class _AdminLoginPageState extends State<AdminLoginPage>
setState(() => _isLoading = true);
final otpHelper = Get.find<OtpHelper>();
final otpHelper = Get.isRegistered<OtpHelper>()
? Get.find<OtpHelper>()
: Get.put(OtpHelper(), permanent: true);
bool success = await otpHelper.loginWithPassword(password, phone);
if (success) {