feat: basic initial implementation of spotify client link validator and song submission form refs: NOISSUE
This commit is contained in:
@@ -10,7 +10,7 @@ public class AuthController : Controller
|
||||
public async Task<IActionResult> Login(string username, string password)
|
||||
{
|
||||
var ldapService = HttpContext.RequestServices.GetService<LdapAuthenticationService>();
|
||||
if (ldapService.Authenticate(username, password))
|
||||
if (ldapService != null && ldapService.Authenticate(username, password))
|
||||
{
|
||||
var claims = new[] { new Claim(ClaimTypes.Name, username) };
|
||||
var identity = new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme);
|
||||
|
Reference in New Issue
Block a user