perform method

Future<bool> perform(
  1. {@required String email,
  2. @required String password}
)

Implementation

Future<bool> perform(
    {@required String email, @required String password}) async {
  final a = TextFormField(
      validator: EmailValidator(errorText: 'enter a valid email address'));
  try {
    var fa = getAuth();
    await fa.signInWithEmailAndPassword(email: email, password: password);
    currUser().reload();

    await emailVerify(fa);
    await resetPassword(fa, email);
  } catch (e) {
    print(e);
  }
}