Skip to content

Commit

Permalink
update stored auth data after successful login #23
Browse files Browse the repository at this point in the history
  • Loading branch information
pisanovo committed Jul 16, 2020
1 parent acb1a96 commit 7bb0148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/Login/CheckUserLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public async void onLogin()
ApplicationState.player = new Player(response.Response.User);

// Go to the main menu.
PlayerPrefs.SetString("username", username.text);
PlayerPrefs.SetString("password", password.text);
PlayerPrefs.SetString("token", response.Response.Token);
SceneManager.LoadScene("MainMenu");
}
Expand Down

0 comments on commit 7bb0148

Please sign in to comment.