loginBasic method

Future<CtrlMessage> loginBasic(
  1. String username,
  2. String password,
  3. Map<String, dynamic>? cred
)

Wrapper for login with basic authentication

Implementation

Future<CtrlMessage> loginBasic(
    String username, String password, Map<String, dynamic>? cred) async {
  var secret = base64.encode(utf8.encode(username + ':' + password));
  var ctrl = await login('basic', secret, cred);
  _authService.setLastLogin(username);
  return ctrl;
}