summaryrefslogtreecommitdiff
path: root/register.php
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-12 19:21:35 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-12 19:21:35 +0100
commit92cdd4cc7f6955760236e134126d8a68efa13360 (patch)
tree23a5022a3c1a05ae6df7bda06f62674bb769a7aa /register.php
parent8c65c805f865377685b5d95d35b1d9e60bd48618 (diff)
downloadfluxbb-better_passwords.tar.xz
hand-picked changes for better password functions from tyzoids branchbetter_passwords
Diffstat (limited to 'register.php')
-rw-r--r--register.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/register.php b/register.php
index 04a6417..111c850 100644
--- a/register.php
+++ b/register.php
@@ -157,10 +157,10 @@ if (isset($_POST['form_sent']))
$now = time();
$intial_group_id = ($pun_config['o_regs_verify'] == '0') ? $pun_config['o_default_user_group'] : PUN_UNVERIFIED;
- $password_hash = pun_hash($password1);
+ $password_hash = pun_password_hash($password1);
// Add the user
- $db->query('INSERT INTO '.$db->prefix.'users (username, group_id, password, email, email_setting, timezone, dst, language, style, registered, registration_ip, last_visit) VALUES(\''.$db->escape($username).'\', '.$intial_group_id.', \''.$password_hash.'\', \''.$db->escape($email1).'\', '.$email_setting.', '.$timezone.' , '.$dst.', \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$now.', \''.$db->escape(get_remote_address()).'\', '.$now.')') or error('Unable to create user', __FILE__, __LINE__, $db->error());
+ $db->query('INSERT INTO '.$db->prefix.'users (username, group_id, password, email, email_setting, timezone, dst, language, style, registered, registration_ip, last_visit) VALUES(\''.$db->escape($username).'\', '.$intial_group_id.', \''.$db->escape($password_hash).'\', \''.$db->escape($email1).'\', '.$email_setting.', '.$timezone.' , '.$dst.', \''.$db->escape($language).'\', \''.$pun_config['o_default_style'].'\', '.$now.', \''.$db->escape(get_remote_address()).'\', '.$now.')') or error('Unable to create user', __FILE__, __LINE__, $db->error());
$new_uid = $db->insert_id();
if ($pun_config['o_regs_verify'] == '0')