diff --git a/Assets/Samples/AuthenticationDemo/Scripts/RegisterUIController.cs b/Assets/Samples/AuthenticationDemo/Scripts/RegisterUIController.cs index f73a10a..5f2f75a 100644 --- a/Assets/Samples/AuthenticationDemo/Scripts/RegisterUIController.cs +++ b/Assets/Samples/AuthenticationDemo/Scripts/RegisterUIController.cs @@ -51,6 +51,7 @@ private async void OnRegisterClick() validationLabel.text = e.GetErrorCode() switch { PlayerAuthErrorCode.IDENTIFIER_TAKEN => "Username is already taken", + PlayerAuthErrorCode.INVALID_EMAIL => "Invalid email address", _ => e.Message }; } diff --git a/Packages/com.trytalo.talo/Runtime/Utils/PlayerAuthException.cs b/Packages/com.trytalo.talo/Runtime/Utils/PlayerAuthException.cs index a5d3a02..6467b4c 100644 --- a/Packages/com.trytalo.talo/Runtime/Utils/PlayerAuthException.cs +++ b/Packages/com.trytalo.talo/Runtime/Utils/PlayerAuthException.cs @@ -11,7 +11,9 @@ public enum PlayerAuthErrorCode { INVALID_SESSION, NEW_PASSWORD_MATCHES_CURRENT_PASSWORD, NEW_EMAIL_MATCHES_CURRENT_EMAIL, - PASSWORD_RESET_CODE_INVALID + PASSWORD_RESET_CODE_INVALID, + VERIFICATION_EMAIL_REQUIRED, + INVALID_EMAIL } public class PlayerAuthException : Exception