18 lines
375 B
Go
18 lines
375 B
Go
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)
|
|
}
|