mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(config) passwd -> password
This commit is contained in:
parent
47e940c8d2
commit
ca32b296c3
1 changed files with 2 additions and 2 deletions
|
|
@ -100,12 +100,12 @@
|
|||
pipe.getBody(req, function(error, body) {
|
||||
var data = '',
|
||||
json = Util.json.parse(body) || {},
|
||||
passwd = json.passwd,
|
||||
passwd = json.password,
|
||||
sha = crypto.createHash('sha1');
|
||||
|
||||
if (error) {
|
||||
callback(error);
|
||||
} else if (json.passwd) {
|
||||
} else if (passwd) {
|
||||
sha.update(passwd);
|
||||
passwd = sha.digest('hex');
|
||||
json.password = passwd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue