Subject: | Bugs in Mojolicious::Plugin::Authentication module |
Date: | Fri, 22 Apr 2011 13:30:05 +0300 |
To: | bug-Mojolicious-Plugin-Authentication [...] rt.cpan.org |
From: | Andre Parker <andre [...] haruhi.org.ua> |
Hi.
Some issues in subj.
When registering before_dispatch hook, sub receive plugins instance as
first argument and controller instance as second. Using '$self->stash'
producing error, because there's no method 'stash' in
'Mojolicious::Plugins' object.
In 'authenticate' helper there is sub call
'$self->stash->{$our_stash_key}->{validate_user}->($self, $user,
$pass)', but nobody created 'validate_user' in stash. Some lines below
'load_user' called as $args->{load_user}.
In same helper 'load_user' called as '{load_user}->($uid)', instead of
'{load_user}->($self, $uid)'.
Thx.
--
Best regards,
Parker Andre.