1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix accidental improper name for login ClientId

added label field to InputInfo
added logout button
revert graph color
This commit is contained in:
RaidMax
2018-04-05 17:50:04 -05:00
parent aec8ec6256
commit e8481b5b25
7 changed files with 34 additions and 21 deletions

View File

@ -82,23 +82,25 @@ namespace WebfrontCore.Controllers
{
new InputInfo()
{
Name = "User ID"
Name = "clientId",
Label = "Client ID"
},
new InputInfo()
{
Name = "Password",
Label ="Password",
Type = "password",
}
},
Action = "Login"
Action = "LoginAsync"
};
return View("_ActionForm", login);
}
public IActionResult Login(int userId, string password)
public async Task<IActionResult> LoginAsync(int clientId, string password)
{
return RedirectToAction("Login", "Account", new { userId, password });
return await Task.FromResult(RedirectToAction("LoginAsync", "Account", new { clientId, password }));
}
}
}