We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9c8115e4 authored by Jørgen Bøhnsdalen's avatar Jørgen Bøhnsdalen

Insert data into 'expires'-column when inserting new row in AccountActivation

parent b1c987d5
......@@ -132,11 +132,12 @@ if(isset($_POST['register'])) {
}
$code = md5($username . time());
$sql = 'INSERT INTO AccountActivation (username, authcode) VALUES('
$sql = 'INSERT INTO AccountActivation (username, authcode, expires) VALUES('
. $adodb->qstr($username) . ', '
. $adodb->qstr($code) . ')';
. $adodb->qstr($code) . ', '
. (time()+(86400*2)) . ')';
try {
$res = $adodb->Execute($sql);
$res = $adodb->Execute($sql);
}
catch (exception $e) {
reportError('AccountActivation, insert, register.php', $e->getMessage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment