Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removes username check which doesn't do any good

  • Loading branch information...
commit 9e7ee515c70691db4496ae14ca1416afbc0c78f2 1 parent 75cbc48
@Tenzer Tenzer authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.