mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	golint fixed for modules/auth
This commit is contained in:
		@@ -12,7 +12,8 @@ import (
 | 
			
		||||
	"github.com/msteinert/pam"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func PAMAuth(serviceName, userName, passwd string) error {
 | 
			
		||||
// Auth pam auth service
 | 
			
		||||
func Auth(serviceName, userName, passwd string) error {
 | 
			
		||||
	t, err := pam.StartFunc(serviceName, userName, func(s pam.Style, msg string) (string, error) {
 | 
			
		||||
		switch s {
 | 
			
		||||
		case pam.PromptEchoOff:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user