Commit 851f91dc authored by Tamlyn Rhodes's avatar Tamlyn Rhodes

Fix typo in user unique check

parent e689d5d0
Pipeline #2945 passed with stage
in 5 minutes and 2 seconds
......@@ -51,7 +51,7 @@ class User extends Model {
throw new ConflictError('User already exists')
}
result = await User.findByUsername(user.email).catch(swallowNotFound)
result = await User.findByUsername(user.username).catch(swallowNotFound)
if (result) {
throw new ConflictError('User already exists')
......
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