mirror of
https://github.com/MarekWojt/gertdns.git
synced 2025-12-15 12:59:53 +01:00
Password Authentication
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user