Browse Source

Fixed auto-signout on deletion.

master
Teknikode 6 years ago
parent
commit
29635234e6
  1. 3
      Teknik/Areas/Profile/Controllers/ProfileController.cs

3
Teknik/Areas/Profile/Controllers/ProfileController.cs

@ -435,7 +435,8 @@ namespace Teknik.Areas.Profile.Controllers @@ -435,7 +435,8 @@ namespace Teknik.Areas.Profile.Controllers
user.UploadSettings = db.UploadSettings.Find(user.UserId);
db.Users.Remove(user);
db.SaveChanges();
FormsAuthentication.SignOut();
// Sign Out
Logout();
return Json(new { result = true });
}
}

Loading…
Cancel
Save