loginPassword method

Future<bool> loginPassword(
  1. String email,
  2. String password,
  3. BuildContext context
)

Implementation

Future<bool> loginPassword(String email, String password, BuildContext context) async {
  try {
    this.email = email;
    dynamic res = await _api.loginPassword(email, password, context);
    if (res == false) {
      return false;
    }
    setUserInfo(res);
    return true;
  } catch (e) {
    rethrow;
  }
}