Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit backends optionally hashing token accessor #1207

Merged
merged 4 commits into from
Mar 14, 2016

Conversation

vishalnayak
Copy link
Member

No description provided.

if err := audit.Hash(b.salt, auth); err != nil {
return err
}
if !b.hashAccessor && auth != nil && auth.Accessor != "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified to if accessor != "" since it will only be assigned to if the same conditions are met above.

@jefferai
Copy link
Member

Very minor suggestions, other than that 👍

vishalnayak added a commit that referenced this pull request Mar 14, 2016
Audit backends optionally hashing token accessor
@vishalnayak vishalnayak merged commit 2591a74 into master Mar 14, 2016
@vishalnayak vishalnayak deleted the audit-hash-accessor branch March 14, 2016 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants