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

How to set login_required flag? #2

Open
andrewcrook opened this issue Jun 22, 2011 · 4 comments
Open

How to set login_required flag? #2

andrewcrook opened this issue Jun 22, 2011 · 4 comments

Comments

@andrewcrook
Copy link

Dont need to be logged in, but cant work out how to set flag to disable login checking.
Any ideas?

@jamiehodge
Copy link

Hi Nate,

:login is missing from the @settings hash.

Should SSL and login really be required by default?

Thank you for the nice gem!

@nateware
Copy link
Owner

Jamie, sorry if I'm being dense - can you be a bit more specific? Thanks

@andrewcrook
Copy link
Author

it checks for :login by default there is no login config method to set the :login key in the @settings hash to override this behaviour (I think there is for SSL its ssl_enabled), for example AcceptParams.login_checking_enabled (sets @settings[:login])

/ lib / sinatra / accept_params / param_rules.rb line 68

if @settings[:login] << how to set to true/false?

@nateware
Copy link
Owner

Ahh, I get it now... if someone can spin a patch I'll pull it in - thanks!

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

No branches or pull requests

3 participants