diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-02-28 17:37:57 -0500 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-02-28 17:37:57 -0500 |
| commit | a8f3669b4ea82f48edbca69742364adf2794e07f (patch) | |
| tree | b2668a0a31623a578a16622a5da6b0c924b3c071 /activate.php | |
| parent | 3bfe03a6f6136947eb8b9c714306d080ce889af7 (diff) | |
| download | bulletin-a8f3669b4ea82f48edbca69742364adf2794e07f.tar.gz | |
Modularized email and hashing
Diffstat (limited to 'activate.php')
| -rw-r--r-- | activate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activate.php b/activate.php index 66f14b3..40f1687 100644 --- a/activate.php +++ b/activate.php @@ -7,7 +7,7 @@ fatal('Registration has been disabled at the moment. We\'re sorry for the inconv $db = new bdb() or fatal($db-error); $uid = intval($_GET['uid']); $key = $_GET['key']; -$db->query('UPDATE users SET active = 1 WHERE id = '.$uid.' AND session = \''.hash('sha512', $key).'\'') or fatal($db->error); +$db->query('UPDATE users SET active = 1 WHERE id = '.$uid.' AND session = \''.bulletin_hash($key).'\'') or fatal($db->error); if ($db->affected_rows < 1) fatal('Invalid information provided.'); setcookie($b_config['c_name'], $uid.';'.$key, 0, $b_config['c_path'], $b_config['c_dom'], $b_config['c_sec'], $b_config['c_http']); fatal('Your account is now active, you will be taken to the user dashboard.', $b_config['base_url'].'dash/'); |
