loginPassword method
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;
}
}