change for_session in Auth::Store::Htpasswd to use username
[catagits/Catalyst-Authentication-Store-Htpasswd.git] / lib / Catalyst / Plugin / Authentication / Store / Htpasswd / User.pm
index 7c7600f..a242ba5 100644 (file)
@@ -38,7 +38,7 @@ sub roles {
 
 sub for_session {
     my $self = shift;
-    return $self;
+    return $self->user->username;
 }
 
 sub from_session {