diff options
author | Benny Baumann <BenBE@geshi.org> | 2014-11-18 19:36:13 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2014-11-18 19:36:13 +0100 |
commit | ce9b70c7ed7224185f467ac1bd955af7b9bb28cc (patch) | |
tree | 3e43e807b4e587112f835dc94953392f91be48b0 /includes | |
parent | fb720bf477205d505c37a47eb29b965a4dcc2b04 (diff) | |
parent | 3e578bf67cf3ba551aecae52b2f95d910af336ec (diff) | |
download | cacert-devel-ce9b70c7ed7224185f467ac1bd955af7b9bb28cc.tar.gz cacert-devel-ce9b70c7ed7224185f467ac1bd955af7b9bb28cc.tar.xz cacert-devel-ce9b70c7ed7224185f467ac1bd955af7b9bb28cc.zip |
Merge branch 'bug-1339' into release
Diffstat (limited to 'includes')
-rw-r--r-- | includes/account.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/account.php b/includes/account.php index b1ab984..88026d6 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1333,16 +1333,6 @@ function buildSubjectFromSession() { mysql_query($query); } - //!!!Should be rewritten - $_SESSION['_config']['user']['otphash'] = trim(stripslashes(strip_tags($_REQUEST['otphash']))); - $_SESSION['_config']['user']['otppin'] = trim(stripslashes(strip_tags($_REQUEST['otppin']))); - if($_SESSION['_config']['user']['otphash'] != "" && $_SESSION['_config']['user']['otppin'] != "") - { - $query = "update `users` set `otphash`='".mysql_real_escape_string($_SESSION['_config']['user']['otphash'])."', - `otppin`='".mysql_real_escape_string($_SESSION['_config']['user']['otppin'])."' where `id`='".intval($_SESSION['profile']['id'])."'"; - mysql_query($query); - } - $_SESSION['_config']['user']['set'] = 0; $_SESSION['profile'] = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($_SESSION['profile']['id'])."'")); $_SESSION['profile']['loggedin'] = 1; |