ManageUsers.aspx error!

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.
1/27/2012 6:41:52 AM
Gravatar
Total Posts 46

ManageUsers.aspx error when when user have not login again and PasswordSalt is empty!

hi.

In version 2.3.8.1,  an error occurs in code in function PopulateControls in file ManageUsers.aspx.cs when siteUser.PasswordSalt is "".

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

try
{
mojoMembershipProvider mojoMembership = (mojoMembershipProvider)Membership.Provider;
this.txtPassword.Text = mojoMembership.UnencodePassword(siteUser.Password, MembershipPasswordFormat.Encrypted).Replace(siteUser.PasswordSalt, string.Empty); //error
}
catch (FormatException ex)
{...
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

Thanks!

1/27/2012 7:51:38 AM
Gravatar
Total Posts 18439

Re: ManageUsers.aspx error!

please post the stacktrace so I can see what kind of error it is.

I really don't expect an error would happen there if the salt is empty because the only difference when using a salt is that it is concatenated with the password before encrypting, and then for decrypting we the decrypted password will still have the salt concatentated to it, so we then replace it with an empty string.

So the only error I could see is if it causes an error to replace empty string with empty string. So please post the error details so I can understand what is happening.

Thanks,

Joe

1/27/2012 8:37:19 AM
Gravatar
Total Posts 18439

Re: ManageUsers.aspx error!

Ok, it was caused by replacing empty string with empty string. This is now fixed in the source code repository. I will patch the release files with a new version of mojoPortal.Web.dll asap.

Edit: I've patched the 2.3.8.1 release with the fix for this error. The only file that changed is mojoPortal.Web.dll

Thanks,

Joe

1/28/2012 1:23:15 AM
Gravatar
Total Posts 46

Re: ManageUsers.aspx error!

Now, it works!

Thanks!

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