Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Removes username check which doesn't do any good #402

merged 1 commit into from

2 participants


The username is already checked at during user creation, and since change of username isn't possible, it doesn't make sense to check the username anywhere else since it's part of the authentication.

@alejandro alejandro merged commit d9e2d28 into nodester:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 18, 2012
  1. @Tenzer
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/user.js
6 lib/user.js
@@ -69,12 +69,6 @@ User.put = function (req, res, next) {
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) {
Something went wrong with that request. Please try again.