login static method

  1. @Deprecated('Use login2 instead')
Future<bool> login(
  1. User user, {
  2. QueryType? queryType,
})

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;