Skip to content

Commit

Permalink
Removes username check which doesn't do any good
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenzer committed Aug 18, 2012
1 parent 75cbc48 commit 9e7ee51
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ User.put = function (req, res, next) {
},400);
return true;
}
if (user.match(/^[a-z0-9]+$/i) === null){
res.json({
status: "failure - invalid username. must be alphanumeric"
},400);
return true;
}
var db = lib.get_couchdb_database('nodefu');
db.get(user._id, function (err, doc) {
if (err) {
Expand Down

0 comments on commit 9e7ee51

Please sign in to comment.