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

AuthComponent: Allow suppressing authError message #1354

Closed
wants to merge 1 commit into from

Conversation

rchavik
Copy link
Member

@rchavik rchavik commented Jun 16, 2013

When unauthenticated users accesses protected areas, they are greeted
with the default You are not allowed to access that location which is
not desired in some cases.

This patch allows applications to suppress this message by setting
AuthComponent::authError to false bypassing the call to
SessionComponent::setFlash() altogether.

Refs: croogo/croogo#175 (comment)

Note: Please fast-forward and don't use the merge button :)

@markstory
Copy link
Member

Why should the merge button not be used?

@markstory
Copy link
Member

You should update the authError doc block to mention that it can be set to false to disable error messages. Other than that this seems reasonable.

@rchavik
Copy link
Member Author

rchavik commented Jun 17, 2013

Okay.

I will update docs and docblocks before merging.

re: merge button: just want to make the history linear when it only a small change

When unauthenticated users accesses protected areas, they are greeted
with the default 'You are not allowed to access that location' which is
not desired in some cases.

This patch allows applications to suppress this message by setting
AuthComponent::authError to false bypassing the call to
SessionComponent::setFlash() altogether.

Refs: croogo/croogo#175 (comment)
@markstory
Copy link
Member

I'm too lazy to do a local merge though 😄

@rchavik rchavik closed this Jun 17, 2013
@rchavik
Copy link
Member Author

rchavik commented Jun 17, 2013

Landed in 0d486bd

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.

None yet

2 participants