summaryrefslogtreecommitdiff
path: root/includes/account.php
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-11-15 12:12:12 +0100
committerFelix Dörre <felix@dogcraft.de>2014-11-15 12:12:12 +0100
commit3e578bf67cf3ba551aecae52b2f95d910af336ec (patch)
tree04a7d453bba90ecc2ffcb6941796724378e6d5e6 /includes/account.php
parent6d0f414854b2c1aa1da9ec49889ac9bb3b69b966 (diff)
downloadcacert-devel-3e578bf67cf3ba551aecae52b2f95d910af336ec.tar.gz
cacert-devel-3e578bf67cf3ba551aecae52b2f95d910af336ec.tar.xz
cacert-devel-3e578bf67cf3ba551aecae52b2f95d910af336ec.zip
bug-1339: remove all traces of OTPbug-1339
Diffstat (limited to 'includes/account.php')
-rw-r--r--includes/account.php10
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;