Initial commit

This commit is contained in:
2023-06-09 11:33:10 +02:00
commit 7c111f97ab
22 changed files with 2221 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package services
import "git.cesium.pw/niku/virteen/internal/auth/repositories"
type PamAuthService struct {
pam *repositories.PamRepository
}
func NewPamAuthService() *PamAuthService {
return &PamAuthService{
pam: repositories.NewPamRepository(),
}
}
func (pas PamAuthService) IsValidUser(user, password string) bool {
return pas.pam.IsValidUser(user, password)
}