[dancer-users] Authentication Question
Richard Reina
gatorreina at gmail.com
Thu Oct 22 01:04:41 BST 2015
2015-10-21 19:02 GMT-05:00 Richard Reina <gatorreina at gmail.com>:
> Oops let me try again. So far in my app I have been restricting access to
> registered users that have created an account by doing:
>
> get '/dashboard' => sub {
>
> if (! defined(session 'username')) {
>
> redirect '/'; }
>
> }
>
> Is this okay? I really don't have any special roles to authenicate just
> need to make sure that registered users only get to certain pages -- pages
> that would only make sence if you were a registered user in the first
> place. Can I forgoe more formal and extensive authentication in my case?
>
> 2015-10-21 19:00 GMT-05:00 Richard Reina <gatorreina at gmail.com>:
>
>> So far in my app I have been restricting access to registered users that
>> have created an account by doing:
>>
>> get '/dashboard' => sub {
>> if (! defined(session 'username')) { redirect '/'; } } Is
>> this okay? I really don't have any special roles
>> to authenicate just need to make
>> sure that registered users only get to certain
>> pages -- pages that would only make
>> sence if you were a registered user in the first
>> place. Can I forgoe more formal
>> and extensive authentication in my case?
>>
>>
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151021/0f591f37/attachment.html>
More information about the dancer-users
mailing list