ultimos cambios
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:prosappco/src/authentication/authentication_repository.dart';
|
||||
import 'package:prosappco/src/screens/welcome.dart';
|
||||
import 'package:prosappco/src/screens/service.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();
|
||||
await isVerified ? Get.offAll(const ServiceScreen()) : Get.back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user