summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/www/script/futon.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index 2a4ad8ad..b15a5eec 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -87,7 +87,11 @@ function $$(node) {
return;
}
doSignup(data.name, null, function(errors) {
- callback(errors);
+ if (errors && errors.name && errors.name.indexOf && errors.name.indexOf("taken") == -1) {
+ callback(errors);
+ } else {
+ callback();
+ }
}, false);
});
}