aboutsummaryrefslogtreecommitdiff
path: root/pam/login.go
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2017-08-24 00:53:11 -0700
committerGitHub <noreply@github.com>2017-08-24 00:53:11 -0700
commit4879df9a6063886865b94c270660838060acbc20 (patch)
tree9adaa99808990c0034484ed24d587c07ac70525d /pam/login.go
parent17794e94ebe140dc74f93abb8132f5295ee2004e (diff)
parent19c13e861996c3503be5b0dc5a2cecfe186b1744 (diff)
Merge pull request #25 from google/fixv0.2.00.2.0
fscrypt PAM module
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
}