1
0
Fork 0

Copy nil credential store behaviour

master
Philip O'Toole 2 years ago
parent d289da5feb
commit ae27f5aee2

@ -1132,7 +1132,10 @@ type mockCredentialStore struct {
HasPermOK bool
}
func (m *mockCredentialStore) Check(username, password string) bool {
func (m *mockCredentialStore) AA(username, password, perm string) bool {
if m == nil {
return true
}
return m.CheckOK
}

Loading…
Cancel
Save