Files
minilb/app/operator/auth.go
T
2026-03-24 10:31:30 +02:00

15 lines
301 B
Go

package operator
import (
"helmet/pkg/passwd"
)
func (oper *Operator) ValidateUser(username, password string) bool {
for i := range oper.auths {
if username == oper.auths[i].Username && passwd.PasswordMatchCompat([]byte(password), oper.auths[i].Password) {
return true
}
}
return false
}