authenticateLoginIdPassword method
Implementation
Future<bool> authenticateLoginIdPassword(
String loginID, String password) async {
Map<String, String> data = await _authenticateApi(loginID, password);
if (data.isNotEmpty) {
await _authenticate(data['apiKey']!);
} else {
_authenticated = false;
_error = true;
_errorMessage = 'Hmm. Your login id or password seems to be incorrect.';
//notifyListeners();
}
return _authenticated;
}