/// <summary> /// Logs into a user account's current session. /// </summary> /// <param name="token">The user's current token.</param> /// <returns>Returns the token or returns null if not valid.</returns> public override string Login(string token) { // Make an api call to iQualify to gain autherised access using one's token id and return it again if valid. return(IQualifyAPI.Autherisation(token)); }
/// <summary> /// Logs into a user account. /// </summary> /// <param name="login">The email or username of the account to login to.</param> /// <param name="password">The user pass.</param> /// <returns>Returns the token or returns null if not valid.</returns> public override string Login(string login, string password) { // Make an api call to iQualify to gain autherised access using credentials and return its token if valid. return(IQualifyAPI.Autherisation(login, password)); }