aboutsummaryrefslogtreecommitdiff
path: root/pam/login.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-07-19 15:40:35 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-08-22 11:51:31 -0700
commitf3f1d2f98de26e8180c56d87aaad0e4e98fb4e47 (patch)
tree387badf93efa30169fdcff823e1e045dae8f5035 /pam/login.go
parent17794e94ebe140dc74f93abb8132f5295ee2004e (diff)
Various small nits a helper functions for PAM
Diffstat (limited to 'pam/login.go')
-rw-r--r--pam/login.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pam/login.go b/pam/login.go
index e89ee01..346edd4 100644
--- a/pam/login.go
+++ b/pam/login.go
@@ -38,7 +38,7 @@ import (
// Pam error values
var (
- ErrPAMPassphrase = errors.New("incorrect login passphrase")
+ ErrPassphrase = errors.New("incorrect login passphrase")
)
// Global state is needed for the PAM callback, so we guard this function with a
@@ -107,7 +107,7 @@ func IsUserLoginToken(username string, token *crypto.Key, quiet bool) error {
}
if !authenticated {
- return ErrPAMPassphrase
+ return ErrPassphrase
}
return nil
}