nodejitsu/jitsu — Issue #168: [flatiron] `jitsu users forgot` is broken
Author: jesusabdullah
Created: 2012-02-17 01:41:33+00:00
State: open
Labels: regression

First, it's trying to ask my password without any server-side reset behavior. Then, it throws (presumably because of no shake).

```

17:39 josh@onix /home/josh/Downloads
% jitsu users forgot jhizzle
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command users forgot jhizzle
prompt: password:
prompt: confirm password:
error: You password must have characters in it
prompt: password:
prompt: confirm password:
{
"process": {
"pid": 27179,
"uid": 1000,
"gid": 1000,
"cwd": "/home/josh/Downloads",
"execPath": "/usr/local/bin/node",
"version": "v0.6.10",
"argv": [
"node",
"/usr/local/bin/jitsu",
"users",
"forgot",
"jhizzle"
],
"memoryUsage": {
"rss": 35217408,
"heapTotal": 27619712,
"heapUsed": 16897776
}
},
"os": {
"loadavg": [
0.052734375,
0.14306640625,
0.10302734375
],
"uptime": 511904.984074346
},
"trace": [
{
"column": 5,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/commands.js",
"function": null,
"line": 434,
"method": null,
"native": false
},
{
"column": 34,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js",
"function": null,
"line": 179,
"method": null,
"native": false
},
{
"column": 25,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/node_modules/async/lib/async.js",
"function": null,
"line": 126,
"method": null,
"native": false
},
{
"column": 7,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js",
"function": null,
"line": 174,
"method": null,
"native": false
},
{
"column": 14,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js",
"function": null,
"line": 232,
"method": null,
"native": false
},
{
"column": 18,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js",
"function": "ReadStream.data",
"line": 403,
"method": "data",
"native": false
},
{
"column": 17,
"file": "events.js",
"function": "ReadStream.emit",
"line": 67,
"method": "emit",
"native": false
},
{
"column": 14,
"file": "net.js",
"function": "TTY.onread",
"line": 347,
"method": "onread",
"native": false
}
],
"stack": [
"TypeError: undefined is not a function",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron-cli-users/lib/commands.js:434:5",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js:179:34",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/node_modules/async/lib/async.js:126:25",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js:174:7",
" at /home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js:232:14",
" at ReadStream.data (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/prompt/lib/prompt.js:403:18)",
" at ReadStream.emit (events.js:67:17)",
" at TTY.onread (net.js:347:14)"
],
"level": "error",
"message": "uncaughtException"
}
```