H
Hermit Dave
Hi,
As you all probably know.. i am using forms authentication on a site... i
used a specific machine key etc to enable cross domain authentication which
i no longer use.
The interesting this is that if i register.... its fine.. i can log in.
But my client and a friend of hers tried to log in and the hash generated is
different. Thought that maybe she typed in the wrong password or something
but its happened all too many times now..
Was wondering if there are any known issues
// This is from my web.config (which could be a cause but am not sure)
<machineKey
validationKey='B469A89B66AAC6B403C8F49C9020B7C026C1AE7388C49FC4FF8B4DEDB7456
8BEEC58A976975F976E8BCD1F563F531E2DCFF9E2E7342CD796722AD58A86500FA1'
decryptionKey='50042DC9A1DFD69ED71D1E7BEF672F0CB203435E24F1BE45'
validation='SHA1'/>
<authentication mode="Forms">
<forms name="STEP.ASPXAUTH"
loginUrl="Login.aspx"
timeout = "30"
slidingExpiration="true"
protection="All"
path="/" />
</authentication>
--------------------------------------------------------------------------
// This is how i generate the hash before storing it in the db...
myUser.PasswordHash =
FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text,
"md5");
for login i again generate the hash of supplied password and compare the
hash... box standard procedure...
Would be glad for any pointers in the right directions... thanks...
--
Regards,
HD
Once a Geek.... Always a Geek
As you all probably know.. i am using forms authentication on a site... i
used a specific machine key etc to enable cross domain authentication which
i no longer use.
The interesting this is that if i register.... its fine.. i can log in.
But my client and a friend of hers tried to log in and the hash generated is
different. Thought that maybe she typed in the wrong password or something
but its happened all too many times now..
Was wondering if there are any known issues
// This is from my web.config (which could be a cause but am not sure)
<machineKey
validationKey='B469A89B66AAC6B403C8F49C9020B7C026C1AE7388C49FC4FF8B4DEDB7456
8BEEC58A976975F976E8BCD1F563F531E2DCFF9E2E7342CD796722AD58A86500FA1'
decryptionKey='50042DC9A1DFD69ED71D1E7BEF672F0CB203435E24F1BE45'
validation='SHA1'/>
<authentication mode="Forms">
<forms name="STEP.ASPXAUTH"
loginUrl="Login.aspx"
timeout = "30"
slidingExpiration="true"
protection="All"
path="/" />
</authentication>
--------------------------------------------------------------------------
// This is how i generate the hash before storing it in the db...
myUser.PasswordHash =
FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword.Text,
"md5");
for login i again generate the hash of supplied password and compare the
hash... box standard procedure...
Would be glad for any pointers in the right directions... thanks...
--
Regards,
HD
Once a Geek.... Always a Geek