Skip to content

Commit

Permalink
Fixed bug with auth when usernames disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed Feb 17, 2021
1 parent b2a660b commit 00fe0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/routes/v1/auth.js
Expand Up @@ -140,7 +140,7 @@ var registerRoute = async (req, res) => {
return;
}

var username = req.body.username.toLowerCase();
var username = config.user.username.enabled ? req.body.username.toLowerCase() : '';
var password = req.body.password;
var email = req.body.email.toLowerCase();
var domain = 'default';
Expand Down

0 comments on commit 00fe0bb

Please sign in to comment.