Hello and thanks for reading this.
I have a part of some code and i would like comments to the code, but im not the best at explaining what the code does line after line in English, so i was hoping someone could help me.
var crypto = new SimpleCrypto.PBKDF2();
var userinfo = db.Members.FirstOrDefault(u => u.UserName.ToLower() == txtUsername.Text.ToLower());
if (txtPassword.Text != null || txtPassword.Text.Length > 0)
{
if (userinfo != null)
{
if (userinfo.UserPassword == crypto.Compute(txtPassword.Text, userinfo.PasswordSalt))
{
var identity = new ClaimsIdentity(new[] {
new Claim(ClaimTypes.Name, userinfo.ID.ToString())
},
"ApplicationCookie");
...
Go to the complete details ...