Skip to content

Commit

Permalink
Update active account
Browse files Browse the repository at this point in the history
  • Loading branch information
mizhm committed Aug 31, 2021
1 parent 0b2d152 commit bbfedb9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/Areas/Admin/Controllers/AccountsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ public ActionResult Edit(AccountViewModel accounts)
{
acc3.RoleId = accounts.RoleId;
}
acc3.AttemptLogin = accounts.Status == (int)AccountStatus.Actived ? 0 : 3;
if (!users.Edit(acc3))
{
return Json(new
Expand Down Expand Up @@ -454,6 +453,7 @@ public ActionResult ChangeStatus(int id)
{
user.Status = (int)AccountStatus.Actived;
}
user.AttemptLogin = user.Status == (int)AccountStatus.Actived ? 0 : 3;
if (users.Edit(user))
{
return Json(new
Expand Down
Binary file modified Database/database.sql
Binary file not shown.
Binary file modified Documents/C1905M-Group 1-Online Banking (ADSE).pptx
Binary file not shown.

0 comments on commit bbfedb9

Please sign in to comment.