Ejemplo n.º 1
0
 private void RedirectAuthenticatedUser(Registry.User user)
 {
     if (user.IsActivated)
     {
         Response.Redirect(Activate.GetUrl(ReturnUrl));
     }
     else
     {
         FormsAuthentication.RedirectFromLoginPage(user.GetFullyQualifiedName(), Remember.Checked);
     }
 }
Ejemplo n.º 2
0
        protected void OK_Click(object sender, EventArgs e)
        {
            if (IsValid)
            {
                SaveForm();

                if (user.Guid == Guid.Empty)
                {
                    CreateUser();

                    Response.Redirect(Activate.GetUrl(ReturnUrl));
                }
                else
                {
                    // update user
                    user.Save();

                    UserForm.Visible    = false;
                    SuccessForm.Visible = true;
                    SuccessOK.Attributes.Add("onClick", Util.UrlFormatter.GetClientRedirect(ReturnUrl));
                }
            }
        }