From 7bb0148cf7428db96b55aabd1336eb159e290e00 Mon Sep 17 00:00:00 2001 From: Vincenzo Salvatore Pisano <34075628+XATEV@users.noreply.github.com> Date: Thu, 16 Jul 2020 22:50:07 +0200 Subject: [PATCH] update stored auth data after successful login #23 --- Assets/Scripts/Login/CheckUserLogin.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Scripts/Login/CheckUserLogin.cs b/Assets/Scripts/Login/CheckUserLogin.cs index 9a11cb2b..11bcb3c0 100644 --- a/Assets/Scripts/Login/CheckUserLogin.cs +++ b/Assets/Scripts/Login/CheckUserLogin.cs @@ -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"); }