public static void Launch(string version, string email, string password) { var p = new MainCore(); var session = p.Login(email, password, true); p.start(session, version); }
public static string GetAccessToken(string password, string email) { var p = new MainCore(); var session = p.Login(email, password, true); LoggerUpdate("[Auth] Started getting access token"); return(accessToken); }
private void Button_Click(object sender, RoutedEventArgs e) { loginPass = Password.Password; var p = new MainCore(); var session = p.Login(loginEmail, loginPass, true); if (session != null) { p.start(session, versionSelected); LoginSuccess.Content = "Login Successful!"; LoginUnsuccess.Content = ""; } else { LoginUnsuccess.Content = "Login Unsuccessful! Please check your email/password"; LoginSuccess.Content = ""; } }