autentificacion por celular

This commit is contained in:
Juan Felipe Duarte
2023-03-30 10:02:21 -05:00
parent b80c99469c
commit f2f35d3966
13 changed files with 193 additions and 158 deletions
+12
View File
@@ -0,0 +1,12 @@
import 'package:get/get.dart';
import 'package:prosappco/src/authentication/authentication_repository.dart';
import 'package:prosappco/src/screens/welcome.dart';
class OTPController extends GetxController {
static OTPController get instance => Get.find();
Future<void> verifyOTP(String otp) async {
var isVerified = AuthenticationRepository.instance.verifyOTP(otp);
await isVerified ? Get.offAll(const WelcomeScreen()) : Get.back();
}
}