diff options
author | Benny Baumann <BenBE@geshi.org> | 2013-07-14 22:26:44 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2013-07-14 22:26:44 +0200 |
commit | 32c9710e36d3b73f7257a8e590412bb109e6d407 (patch) | |
tree | 6fe80aa94c5beabc92827da949309159a30d56b0 /includes/account.php | |
parent | 5e2267dc9f2c2bee3b9f65d6610a1059400a57c4 (diff) | |
download | cacert-devel-32c9710e36d3b73f7257a8e590412bb109e6d407.tar.gz cacert-devel-32c9710e36d3b73f7257a8e590412bb109e6d407.tar.xz cacert-devel-32c9710e36d3b73f7257a8e590412bb109e6d407.zip |
bug 1123: implement CCA acception for client certs
Diffstat (limited to 'includes/account.php')
-rw-r--r-- | includes/account.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/account.php b/includes/account.php index 05b07a7..0899ba6 100644 --- a/includes/account.php +++ b/includes/account.php @@ -18,6 +18,7 @@ require_once("../includes/loggedin.php"); require_once("../includes/lib/l10n.php"); require_once('lib/check_weak_key.php'); + require_once('notary.inc.php'); loadem("account"); @@ -193,6 +194,14 @@ if($process != "" && $oldid == 3) { + if(!array_key_exists('CCA',$_REQUEST)) + { + showheader(_("My CAcert.org Account!")); + echo _("You did not accept the CAcert Community Agreement (CCA), hit the back button and try again."); + showfooter(); + exit; + } + if(!(array_key_exists('addid',$_REQUEST) && is_array($_REQUEST['addid'])) && $_REQUEST['SSO'] != '1') { showheader(_("My CAcert.org Account!")); @@ -317,6 +326,8 @@ exit; } + write_user_agreement(intval($_SESSION['profile']['id']), "CCA", "certificate creation", "", 1); + $query = "insert into emailcerts set `CN`='$defaultemail', `keytype`='NS', |