update cached user after email/password update; repaired recently-introduced typo...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Mar 2011 21:19:39 +0000 (21:19 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Mar 2011 21:19:39 +0000 (21:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19552 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm

index d8dfb71..842721c 100644 (file)
@@ -1313,6 +1313,9 @@ sub update_passwd {
 
     $e->update_actor_user($db_user) or return $e->die_event;
     $e->commit;
+
+    # update the cached user to pick up these changes
+    $U->simplereq('open-ils.auth', 'open-ils.auth.session.reset_timeout', $auth, 1);
     return 1;
 }
 
@@ -1701,7 +1704,7 @@ sub user_transactions {
         { 'total_owed' => { '>' => 0 } };
 
     my $method = 'open-ils.actor.user.transactions.history.still_open';
-    $method = "$method.authoritative" if $api => /authoritative/;
+    $method = "$method.authoritative" if $api =~ /authoritative/;
     my ($trans) = $self->method_lookup($method)->run($auth, $user_id, $type, $filter, $options);
 
        if($api =~ /total/o) {