pam_stub.go 314 B

123456789101112131415
  1. //go:build !pam
  2. // Copyright 2014 The Gogs Authors. All rights reserved.
  3. // Use of this source code is governed by a MIT-style
  4. // license that can be found in the LICENSE file.
  5. package pam
  6. import (
  7. "github.com/pkg/errors"
  8. )
  9. func (*Config) doAuth(_, _ string) error {
  10. return errors.New("PAM not supported")
  11. }