From 9d35792778885932c09102bd011b518eb47c5131 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 6 May 2013 23:13:11 -0700 Subject: NG auth: fix new customer, remove mapsecrets support, RT#21563 --- httemplate/pref/pref-process.html | 3 ++- httemplate/pref/pref.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'httemplate/pref') diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 6b94f7175..242e12294 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -20,7 +20,8 @@ if ( grep { $cgi->param($_) !~ /^\s*$/ } ) { $access_user = qsearchs( 'access_user', { - 'username' => getotaker, + 'usernum' => $FS::CurrentUser::CurrentUser->usernum, + 'username' => $FS::CurrentUser::CurrentUser->username, '_password' => scalar($cgi->param('_password')), } ); diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 5babb0181..9861c3f85 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,4 +1,4 @@ -<% include('/elements/header.html', 'Preferences for '. getotaker ) %> +<% include('/elements/header.html', 'Preferences for '. $FS::CurrentUser::CurrentUser->username ) %>
-- cgit v1.2.1