We have a handful of sharepoint sites that uses various UserControls we have developed for custom stuff including authentication and authorization. On one of these sites when a new user is created by an admin it creates a password of this minumum length number of characters, saves the user info and sends an email to the users email address. All was well until.... Corporate just handed down a new policy that all users must use a 10 character minumum length password vs the previous 8. This valus is in an assembly in a static class so we can do something like
//Assembly 1 defines rules and logic
public static class AccountRules
{
public static int PasswordMinimumLength = 10;
}
//Assembly 2 calls references Assembly 1
Status CreateUser(User u)
{
if (u.Password == null)
{
u.Password = GeneratePassword();
}
return DAL.SaveUser(User);
}
string CreatePassword()
{
string pass = "";
for (int i = 0; i < AccountRules.PasswordMimimumLength; i++)
{
pass += RandomChar();
}
}
We updated the assembly that contains this constant, rebuild dependent sites and published controls to the dev servers. Now I create a new account and its still making 8 character passwords! I check the assembly with reflector and the constant length is 10. I removed this assembly from the GAC and reinstalled the new one with the 10 charater minumum and still generating 8 char passwords. We restarted the site in IIS with no luck, the sharepoint app pool, the entire IIS instance, the physical box and still 8 character passwords. Where else is the dll possibly cached that this is happening? I'm ripping my hair out on this one. Thanks in advance for any help from you god-like experts.