Skip to content

Commit

Permalink
add INVALID_EMAIL error code
Browse files Browse the repository at this point in the history
  • Loading branch information
tudddorrr committed Nov 13, 2024
1 parent c8a78d9 commit 92dc6f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92dc6f2

Please sign in to comment.