public void AdminLogin() { currentView = LootLockerView.Loading; LootLockerSDKAdminManager.InitialAuthRequest(email, password, (response) => { if (response.success) { Debug.Log("Successful got admin auth response: " + response.text); if (response.mfa_key != null) { mfaState = true; Debug.Log("the admin enabled 2fa"); StartTwoFA(response.mfa_key); } else { mfaState = false; Debug.Log("the admin didn't enable 2fa"); FinalAuth(response); } } else { ResetToLogin(); Debug.LogError("failed to get admin auth response: " + response.Error); } }); }
public void InitialAuthenticationRequest() { LootLockerSDKAdminManager.InitialAuthRequest(email, password, (response) => { if (response.success) { Debug.LogError("Successful got admin auth response: " + response.text); mfa_key = response.mfa_key; } else { Debug.LogError("failed to get admin auth response: " + response.Error); } }); }