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@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@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users