Re: [Mojolicious] Access to stash from hooks ? (before_routes)

2018-09-04 Thread Brad Robertson
On Tue, Sep 04, 2018 at 11:54:50AM -0700, Luc Larochelle wrote: > Hi, > > I'm using the excellent " basic auth plus " plugin to authenticate against > an LDAP server. > > It is being called from the hook "before_routes". > > Question : is it possible to insert a value into the stash from this

[Mojolicious] Access to stash from hooks ? (before_routes)

2018-09-04 Thread Luc Larochelle
Hi, I'm using the excellent " basic auth plus " plugin to authenticate against an LDAP server. It is being called from the hook "before_routes". Question : is it possible to insert a value into the stash from this hook ? I tried with $self->stash(user => $username) but it's not recognized b