Permalink
Browse files

Accounts: Bump the work factor on bcrypt to 10 from default of 8.

  • Loading branch information...
1 parent 6e77d38 commit 53c214f19e41239561e3fd7fa561d9ce7ace0981 @tchalvak tchalvak committed Sep 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 deploy/lib/control/lib_accounts.php
@@ -67,7 +67,7 @@ function create_account($ninja_id, $email, $password_to_hash, $confirm, $type=0,
$newID = query_item("SELECT nextval('accounts_account_id_seq')");
$ins = "INSERT INTO accounts (account_id, account_identity, active_email, phash, type, operational, verification_number)
- VALUES (:acc_id, :email, :email2, crypt(:password, gen_salt('bf', 8)), :type, :operational, :verification_number)";
+ VALUES (:acc_id, :email, :email2, crypt(:password, gen_salt('bf', 10)), :type, :operational, :verification_number)";
$email = strtolower($email);

0 comments on commit 53c214f

Please sign in to comment.