Skip to content

Commit

Permalink
nip05: handle ?name=alice&name=bob
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed Aug 31, 2024
1 parent 8089e10 commit bec74a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/server/routes/core.server.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = function (app) {
const mongoose = require('mongoose');
const User = mongoose.model('User');

const name = req.query.name;
const name = Array.isArray(req.query.name) ? req.query.name[0] : req.query.name;

User.findOne({ username: name }, function (err, user) {
if (err) {
Expand Down

0 comments on commit bec74a3

Please sign in to comment.