cred/app-id: ensure consistent error message

This commit is contained in:
Armon Dadgar 2015-05-15 11:45:57 -07:00
parent 8cff23f29b
commit 56659a2db2
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ func (b *backend) pathLogin(
return nil, err
}
if appsMap == nil {
return logical.ErrorResponse("unknown app_id or user_id"), nil
return logical.ErrorResponse("invalid user ID or app ID"), nil
}
// If there is a CIDR block restriction, check that
@ -97,7 +97,7 @@ func (b *backend) pathLogin(
return nil, err
}
if appRaw == nil {
return logical.ErrorResponse("unknown app_id or user_id"), nil
return logical.ErrorResponse("invalid user ID or app ID"), nil
}
// Get the policies associated with the app