1. add login api

2. add get channel list api
This commit is contained in:
Jay
2018-08-15 21:19:06 +08:00
parent ff36b00097
commit 4e610d87e3
8 changed files with 242 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
require('module-alias/register')
const {
hashPassword
} = require('@libs/tools')
let args = process.argv
let pass = args[2] || ''
if (typeof pass !== 'string' || pass.trim().length === 0) {
console.log('command: node hashPass <pass string>')
process.exit(1)
}
hashPassword(pass).then(r => {
console.log(`Password: ${r}`)
}).catch(err => {
console.log(err)
})