From aff83ff76cb8591dfbb147606ff849bc95052844 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 1 Mar 2011 21:19:39 +0000 Subject: [PATCH] update cached user after email/password update; repaired recently-introduced typo on user transaction retrieval method 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index d8dfb71677..842721c638 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -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) { -- 2.43.2