Change password screen: buttons without text

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/30/2006 11:25:15 AM
Gravatar
Total Posts 73

Change password screen: buttons without text

Today I tried to change my password in my own mojo installation. On the screen where I could fill in a new password, the OK and Cancel button are small and without text.

Best regards,

Jan

9/30/2006 11:30:16 AM
Gravatar
Total Posts 18439

Re: Change password screen: buttons without text

Man I swear that was working before but I just replicated it on my machine and on this site, I'm looking into it now.

Joe
9/30/2006 11:41:07 AM
Gravatar
Total Posts 18439

Re: Change password screen: buttons without text

Argh!  There was a bug in the PopulateLabels method in ChangePassword.aspx.cs, if you enable Access keys in web.config it was working fine but the else branch of the code was wrong in the way it was getting a reference to the buttons. The complete corrected method looks like this:

private void PopulateLabels()
{
    Button changePasswordButton = (Button)ChangePassword1.ChangePasswordTemplateContainer.FindControl("ChangePasswordPushButton");
    Button cancelButton = (Button)ChangePassword1.ChangePasswordTemplateContainer.FindControl("CancelPushButton");

    if (ConfigurationManager.AppSettings["UseShortcutKeys"].ToLower() == "true")
    {

    if (changePasswordButton != null)
    {
        changePasswordButton.AccessKey = GetGlobalResourceObject("Resource", "ChangePasswordButtonAccessKey").ToString();
        changePasswordButton.Text = GetGlobalResourceObject("Resource", "UserChangePasswordLabel").ToString()
        + " ["
        + GetGlobalResourceObject("Resource", SiteUtils.GetBrowserAccessKeyResourceKey())
        + "+" + changePasswordButton.AccessKey + "]";
    }


    if (cancelButton != null)
    {
        cancelButton.AccessKey = GetGlobalResourceObject("Resource", "ChangePasswordCancelButtonAccessKey").ToString();
        cancelButton.Text = GetGlobalResourceObject("Resource", "RegisterCancelButton").ToString()
        + " ["
        + GetGlobalResourceObject("Resource", SiteUtils.GetBrowserAccessKeyResourceKey())
        + "+" + cancelButton.AccessKey + "]";
    }

    }
    else
    {
    if (changePasswordButton != null)
    {
        changePasswordButton.Text = GetGlobalResourceObject("Resource", "UserChangePasswordLabel").ToString();

    }

    if (cancelButton != null)
    {
        cancelButton.Text = GetGlobalResourceObject("Resource", "RegisterCancelButton").ToString();

    }


    }

    this.ChangePassword1.CancelDestinationPageUrl = SiteUtils.GetSiteRoot() + "/Secure/UserProfile.aspx";

    this.ChangePassword1.ChangePasswordFailureText
    = GetGlobalResourceObject("Resource", "UserChangePasswordFailureText").ToString();

    this.ChangePassword1.ConfirmPasswordCompareErrorMessage
    = GetGlobalResourceObject("Resource", "RegisterPasswordMustMatchConfirmMessage").ToString();

    this.ChangePassword1.ConfirmPasswordRequiredErrorMessage
    = GetGlobalResourceObject("Resource", "RegisterConfirmPasswordRequiredMessage").ToString();

    this.ChangePassword1.ContinueDestinationPageUrl = SiteUtils.GetSiteRoot();

    this.ChangePassword1.NewPasswordRequiredErrorMessage
    = GetGlobalResourceObject("Resource", "UserNewPasswordRequired").ToString();

    this.ChangePassword1.PasswordRequiredErrorMessage
    = GetGlobalResourceObject("Resource", "UserProfilePasswordRequired").ToString();

    this.ChangePassword1.SuccessTitleText = String.Empty;
    this.ChangePassword1.SuccessText = GetGlobalResourceObject("Resource", "UserChangePasswordSuccessText").ToString();

}

I'm going to make another incremental release sometime this week for a few bug fixes and some other little enhancements to the initial data setup that I've been working on.

Joe
You must sign in to post in the forums. This thread is closed to new posts.