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