From 01c8df01ec0608f1f25b2f1444adabb98fa5ee8a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 24 Oct 2019 01:51:46 -0700 Subject: internal: move packages under this directory (#5836) * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version --- internal/auth/pam/pam_stub.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/auth/pam/pam_stub.go (limited to 'internal/auth/pam/pam_stub.go') diff --git a/internal/auth/pam/pam_stub.go b/internal/auth/pam/pam_stub.go new file mode 100644 index 00000000..33ac751a --- /dev/null +++ b/internal/auth/pam/pam_stub.go @@ -0,0 +1,15 @@ +// +build !pam + +// Copyright 2014 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package pam + +import ( + "errors" +) + +func PAMAuth(serviceName, userName, passwd string) error { + return errors.New("PAM not supported") +} -- cgit v1.2.3