Browse Source

Fixed auto-signout on deletion.

tags/2.0.3
Teknikode 4 years ago
parent
commit
29635234e6
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Teknik/Areas/Profile/Controllers/ProfileController.cs

+ 2
- 1
Teknik/Areas/Profile/Controllers/ProfileController.cs View File

@@ -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