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:
@ -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 }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user