aboutsummaryrefslogtreecommitdiffstats
path: root/lib/register.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/register.js')
-rw-r--r--lib/register.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/register.js b/lib/register.js
index a8d420ba..fa8145b0 100644
--- a/lib/register.js
+++ b/lib/register.js
@@ -8,7 +8,7 @@ register = ah(async (user, ip, requireChallenge) => {
let exists = await db.User.count({ where: { username: user.username } });
if (exists) throw new Error(`Username ${user.username} taken`);
- if (user.password && user.password === user.confirm) {
+ if (user.password) {
user.password = await bcrypt.hash(user.password, 1);
}