Exemple #1
0
        protected override void loadData()
        {
            ph.AddControlsReturnThis(
                new Paragraph(
                    StringTools.ConcatenateWithDelimiter(
                        " ",
                        "Click \"Reset Password\" to email yourself a new password.",
                        "Upon receiving your new password, you may immediately use it to log in.",
                        "You will then be prompted to change your password to something you will remember, which you may use to log in from that point forward.")));

            EwfUiStatics.SetContentFootActions(
                new ActionButtonSetup(
                    "Reset Password",
                    new PostBackButton(
                        PostBack.CreateFull(
                            firstModificationMethod: () => {
                FormsAuthStatics.ResetAndSendPassword(info.User.UserId);
                AddStatusMessage(StatusMessageType.Info, "Your new password has been sent to your email address.");
            },
                            actionGetter: () => new PostBackAction(new ExternalResourceInfo(info.ReturnUrl))))));
        }
 private void modifyData()
 {
     FormsAuthStatics.ResetAndSendPassword(info.UserId);
     AddStatusMessage(StatusMessageType.Info, "Your new password has been sent to your email address.");
 }