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

Restricting connections in Controller #14

Open
duffee opened this issue Dec 21, 2015 · 0 comments
Open

Restricting connections in Controller #14

duffee opened this issue Dec 21, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@duffee
Copy link
Owner

duffee commented Dec 21, 2015

Improve the authentication tutorial.
Mention that the is_logged_in() method needs to return a true or false value to affect the under clause.

if ($self->tx->remote_address eq '128.168.0.3') {
    $self->render( inline => '<h2>Restricted Access</h2>', status => 403 );
}

just falls through to the following return 1 if $self->session('logged_in') and renders the page to the undesirable ip address.

@duffee duffee added the bug label Dec 21, 2015
@duffee duffee self-assigned this Dec 21, 2015
@duffee duffee added this to the v0.02 milestone Dec 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant