pam_stub.go 331 B

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