Exemple #1
0
        protected void signIn_Click(object sender, EventArgs e)
        {
            membEmail    = txtMembEmail2.Text;
            membPassword = txtMembPassword2.Text;

            vubizOk = true;
            if (membEmail.Length < 1 || membPassword.Length < 1)
            {
                panStatus.Visible = true;
                vubizOk           = false;
                litError.Text     = tran("Oops!<br />One or more fields have not been filled in.", lang) + "<br /><span style='font-size:smaller'>(Sign In Form)</span>";
                //txtMembEmail2.Text = "pooh";
                //txtMembEmail2.Focus();
            }

            if (vubizOk)
            {
                // if OK return guid
                JSON = v8server.cfibSignIn(profile, membEmail, membPassword);
                if (JSON == "null")
                {
                    litError.Text     = tran("" + "Oops!<br />Invalid Email Address / Password.", lang);
                    panStatus.Visible = true;
                }
                else
                {
                    SSOmembGuid ssoMembGuid = serializer.Deserialize <SSOmembGuid>(JSON);
                    membGuid = ssoMembGuid.membGuid;
                    string url = "/v8?profile=" + profile + "&membGuid=" + membGuid;
                    Response.Redirect(url, true);
                }
            }
            ;
        }