login static method
Uses the auth.pl API to see if login was successful Returns a bool if the login data of the provided user is correct
Implementation
// TODO: deprecated from 2022-10-12; remove when old enough
@Deprecated('Use login2 instead')
static Future<bool> login(
User user, {
QueryType? queryType,
}) async =>
(await login2(user, queryType: queryType))?.successful ?? false;