From: Jason Woofenden Date: Fri, 2 Oct 2015 22:08:43 +0000 (-0400) Subject: metaform: when password required, use new api X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=c483b6d8ab1f6aa89c0b5b82d44cc76d29e99a62 metaform: when password required, use new api --- diff --git a/metaform/template.php b/metaform/template.php index d45ade3..b0b6298 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -88,12 +88,7 @@ function ~public_file_name~_main() {~opt_public_display {~ function ~file_name~_main() {~opt_pass {~ - if (logged_in_as_admin()) { - tem_set('admin_privs'); - } else { - $_REQUEST['url'] = this_url(); - return 'admin_login'; - } + session_auth_must('admin_~file_name~'); ~}~~opt_db {~ $id = _REQUEST_cut('edit_id'); if ($id) {