Exemplo n.º 1
0
    public void login()
    {
        username = input_user.text;
        password = input_pass.text;
        string loginName = "No user found!";

        try
        {
            loginName = service.ValidateUser(username, password);

            if (loginName.Equals("No user found!"))
            {
                errormessage.text = "Email or password incorrect!";
                input_user.text   = "";
                input_pass.text   = "";
            }
            else
            {
                errormessage.text = ("Welcome " + loginName);
            }
        }
        catch (System.Exception ex)
        {
            errormessage.text = ("Error! - " + ex.StackTrace);
        }
    }
Exemplo n.º 2
0
    void Start()
    {
        service = new wizzService();

        string mail     = "*****@*****.**";
        string password = "******";

        string debug = service.ValidateUser(mail, password);

        Debug.Log(debug);
    }