public override bool ChangePassword(string username, string oldPassword, string newPassword)
 {
     SIPAMU_Entities context = new SIPAMU_Entities();
     SEG_USUARIO user = context.SEG_USUARIO.Single(u => (u.VC_LOGIN == username));
     user.VC_LOGIN = newPassword;
     context.SaveChanges();
     return base.ChangePassword(username, oldPassword, newPassword);
 }
 public override bool ValidateUser(string username, string password)
 {
     if (string.IsNullOrEmpty(username.Trim()) || string.IsNullOrEmpty(password.Trim()))
     {
         return false;
     }
     SIPAMU_Entities context = new SIPAMU_Entities();
     return context.SEG_USUARIO.Any(u => (u.VC_LOGIN == username.Trim()) && (u.VC_CONTRASENNA == password.Trim()));
 }