Re: [Mojolicious] grabbing a plugin out of thin air

2018-11-28 Thread b . duffee
Thanks Dan, that's what I thought. Luc, where were you 3 months ago when I needed this? Sigh, something for the new year. > [1] https://metacpan.org/pod/Mojolicious::Plugin::Authenticatio > n > cheers, Boyd -- You received th

[Mojolicious] Re: LWP::UserAgent::Cached substitute?

2018-11-21 Thread b . duffee
On Wednesday, 21 November 2018 01:44:29 UTC, eight.danc...@gmail.com wrote: > > I have some command line apps that use LWP with LWP::UserAgent::Cached > for the local file-based cache to get() and later parse pages. I need to > use this local page cache so that I don't hit the web server repea

[Mojolicious] Re: Session Tutorial - please review

2017-11-24 Thread b . duffee
On Thursday, 23 November 2017 16:07:11 UTC, sri wrote: > I could only take a quick look, but i think some of the login code might be > insecure. > > > https://github.com/duffee/Mojolicious_session_example/blob/master/ldap/lib/LDAP/Controller/Secure.pm#L43-L52 > > That should return a false

[Mojolicious] Re: hypnotoad systemd start problem

2017-11-23 Thread b . duffee
Hi David, I'm no expert with systemd, but this is my mojo.service file which runs the application in /usr/local/manager-application and works for me. My differences are in the Service tag. mojo.service [Unit] Description=My Mojolicious application Requires=network.target After=network.target

Re: [Mojolicious] re-direct to calling page

2017-11-22 Thread b . duffee
Spot on, Dan. changing the code to $self->session(calling_page => $self->req->url); and $self->stash(user => $username); $self->redirect_to($self->session('calling_page')) if $self->session('calling_page'); $self->render(template => 'tutorial/welcome', format => 'html'); works the

[Mojolicious] re-direct to calling page

2017-11-22 Thread b . duffee
Hi there, There's something that I don't understand about the rendering process. I've got a method in the Controller that checks credentials from a login form, with this fragment at the end of a successful authentication $self->stash(user => $username); $self->render(template => 'tutor

[Mojolicious] Re: Wishlist thread (third edition)

2015-06-17 Thread b . duffee
Not a feature, but I'd ask for something in the vein of Helmut's wish #1 and expand the documentation for a couple of deeply worked examples. Still quite new to Mojolicious, I'm working my way through the docs to implement