如何在Android中以编程方式检查处理器ARM,ARM64或x86中的哪一款?
答案 0 :(得分:1)
if (Login.CheckLoginCredential(user, pwd))
{
Guid uuid;
uuid = Guid.NewGuid();
Session["uuid"] = uuid;
FormsAuthentication.SetAuthCookie(uuid.ToString(), false);
UserService usobject = new UserService();
bool updatecookie = usobject.updatecookie(user, uuid.ToString());
if (ispasswordExpired == false)
{
Login.makeuserInactive(user);
TempData["expirymessage"] = "Your password expired. Please change your password.";
}
if (Login.checkloginStatus(user))
{
return RedirectToAction("Index", "Dashboard");
}
else
{
return RedirectToAction("ResetPassword", "ResetPassword");
}
}
else
{
TempData["Message"] = "Incorrect username or password!";
return RedirectToAction("Index", "Login");
}