Skip to content

Commit dd50b84

Browse files
committed
and normalize username also when saved to db
1 parent 8ad8261 commit dd50b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/server/controllers/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = {
3535
first = result.response.body.first_names.split(' ')[0]
3636
}
3737
User.findOrCreate({
38-
where: { username: body.username },
38+
where: { username: body.username.toLowerCase() },
3939
defaults: {
4040
firsts: first,
4141
lastname: last,

0 commit comments

Comments
 (0)