Password Authentication

This commit is contained in:
2021-10-20 23:23:36 +02:00
parent aa90500616
commit fb35c5f3cc
9 changed files with 199 additions and 6 deletions

View File

@@ -108,13 +108,13 @@ func authenticatedRequest(request func(ctx *fasthttp.RequestCtx)) func(ctx *fast
return
}
authRequest := auth.AuthenticationRequest{
authRequest := auth.PasswordAuthenticationRequest{
Domain: domain,
User: user,
Password: password,
}
authenticated, err := auth.IsAuthenticated(authRequest)
authenticated, err := auth.IsPasswordAuthenticated(authRequest)
if err != nil {
ctx.SetStatusCode(fasthttp.StatusInternalServerError)
return