ciao
in un progetto sto utilizzando la membership e la roles API per l'autenticazione. Fila tutto liscio sia per i controlli asp.net 2.0 per l'autenticazione sia per la cofigurazione del sito. L'utente si registra, l'operazione va a buon fine, nel db sql express il nuovo utente esiste con i dati inseriti compreso la password ( passwordFormat="Clear" ), ma quando poi si va ad autenticare viene fuopri il msg "Tentativo di accesso non riuscito. Riprovare."
Utilizzo questa routine per visualizzare l'errore:
Dim userInfo As MembershipUser = Membership.GetUser(Login1.UserName)
If userInfo Is Nothing Then
loginerrordetails.Text = "There is no user in the database with the username " & Login1.UserName
Else
If Not userInfo.IsApproved Then
loginerrordetails.Text = "Your account has not yet been approved by the site's administrators. Please try again later..."
ElseIf userInfo.IsLockedOut Then
loginerrordetails.Text = "Your account has been locked out because of a maximum number of incorrect login attempts. You will NOT be able to login until you contact a site administrator and have your account unlocked."
Else
loginerrordetails.Text = "password non corretta"
End If
End If
il risultato è sempre password non corretta
help me please