Permalink
Browse files

Removes username check which doesn't do any good

  • Loading branch information...
1 parent 75cbc48 commit 9e7ee515c70691db4496ae14ca1416afbc0c78f2 @Tenzer Tenzer committed Aug 18, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/user.js
View
6 lib/user.js
@@ -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) {

0 comments on commit 9e7ee51

Please sign in to comment.