This commit is contained in:
Paul Schneider 2021-08-11 20:45:40 +01:00
commit 558d5fc8ae
4 changed files with 8 additions and 6 deletions

View file

@ -18,7 +18,7 @@ namespace isn.Controllers
{
[AllowAnonymous]
public class AccountController : Controller
{
{
private readonly IAuthenticationSchemeProvider _schemeProvider;
private readonly SignInManager<ApplicationUser> _signInManager;
@ -62,7 +62,7 @@ namespace isn.Controllers
[ValidateAntiForgeryToken]
public async Task<IActionResult> Login(LoginInputModel model, string button)
{
// the user clicked the "cancel" button
if (button != "login")
{

View file

@ -24,7 +24,7 @@ namespace isn
{
var applicationDbContext = _context.PackageVersions.Include(p => p.Package).Where(p => p.PackageId.StartsWith(model.PackageId));
model.Versions = await applicationDbContext.ToListAsync();
model.Versions = await applicationDbContext.ToArrayAsync();
return View(model);
}
@ -38,7 +38,7 @@ namespace isn
p => (string.IsNullOrEmpty(model.PackageId) || p.PackageId.StartsWith(model.PackageId))
&& p.Package.OwnerId == userId);
model.Versions = await applicationDbContext.ToListAsync();
model.Versions = await applicationDbContext.ToArrayAsync();
return View("Index", model);
}