Update: 2026-06-25 18:53:08
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user