[Solved]How to check match password.

Hello folks!

Just wanna know, how do i check if the match password is correct before joining it?
But i can’t find the password option into “match”, theres only a bool that returns if the match as or not a password…

I’m trying to accomplish something like this.

Thanks!

public void JoinRoom()
 {
     if (match.isPrivate)
     {
         // Does have password
         // Check password
         string tempPassword = password.text;
         if ( match.password == tempPassword)
         {
             // Password is corect
             // Join Room Code here...
         }
         else
         {
             // Password is wrong!
             // Incorrect password code here...
         }
     }
     else
     {
         // Doesn't have password
         // Join room code here...
     }
 }

Figured it out.

Add this to your NetworkLobbyManager:

public override void OnMatchJoined(bool success, string extendedInfo, MatchInfo matchInfo)
    {
        base.OnMatchJoined(success, extendedInfo, matchInfo);
        if ( !success )
        {
            // Conection error, incorrect password included
            // Show incorrect password
        }
    }