This commit is contained in:
Jeff Mitchell
2016-08-19 16:48:32 -04:00
parent cb106531db
commit 357ecb4dfe
16 changed files with 35 additions and 37 deletions

View File

@@ -91,7 +91,6 @@ func (b *backend) secretCredsRevoke(
}
username, ok := usernameRaw.(string)
// Get our connection
db, err := b.DB(req.Storage)
if err != nil {

View File

@@ -64,7 +64,7 @@ func wrapLoginPath(b *backend, loginPath *framework.Path) *framework.Path {
func (b *backend) wrapLoginHandler(loginHandler framework.OperationFunc) framework.OperationFunc {
return func(req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
// login with original login function first
resp, err := loginHandler(req, d);
resp, err := loginHandler(req, d)
if err != nil || resp.Auth == nil {
return resp, err
}

View File

@@ -21,4 +21,3 @@ func (e *codedError) Error() string {
func (e *codedError) Code() int {
return e.code
}