X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FAuthentication%2FStore%2FMinimal%2FBackend.pm;h=d08e330129047128b909bc8393b3c53e6dd8aafc;hb=87ca1824ddcc9dd4f3b1cfde15c302685228a2fd;hp=540b4d788e113bacc9817e07472679b84ec8b77b;hpb=4fbe2e14e7e9bc91be1af92ce7b119373c1c808c;p=catagits%2FCatalyst-Plugin-Authentication.git diff --git a/lib/Catalyst/Plugin/Authentication/Store/Minimal/Backend.pm b/lib/Catalyst/Plugin/Authentication/Store/Minimal/Backend.pm index 540b4d7..d08e330 100644 --- a/lib/Catalyst/Plugin/Authentication/Store/Minimal/Backend.pm +++ b/lib/Catalyst/Plugin/Authentication/Store/Minimal/Backend.pm @@ -36,6 +36,8 @@ sub get_user { return $user; } elsif ( ref $user eq "HASH" ) { + $user->{id} ||= $id; + $user->{store} ||= $self; return bless $user, "Catalyst::Plugin::Authentication::User::Hash"; } else {