1. add login api
2. add get channel list api
This commit is contained in:
@@ -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)
|
||||
})
|
||||
Reference in New Issue
Block a user