Hi I have successfully able to create a signup system and send a verification mail on signup after following this guide.(I am asking here because the same question elsewhere is in moderation forever)
I know that contact email and playfab login email are different, but while signup I have made sure that contact email is same as playfab login email.
Now my question is how do I restrict the user from logging in if he/she has not yet verified the email. I found this code in this post, but I dont understand where and how do you run this code. If somehow I can run a piece of code and get what is the verification status under contact email (because it is "pending" if the link is not clicked and "confirmed" if the link is clicked) my job is done, but how do I do it?
By the way the login I have implemented is via username and password.You can find the code here
private void LoginWithUserNamePassword()//earlier LoginWithCustomID function was used { Debug.Log($"Login to PlayFab as {UserNameInput.text}"); var request = new LoginWithPlayFabRequest { Username = UserNameInput.text, Password = passwordInput.text, }; PlayFabClientAPI.LoginWithPlayFab(request, OnLoginUserNamePasswordSuccess, onFailure); }