fix lamassu-register for localhost port
This commit is contained in:
parent
a2b6b02e06
commit
8fd2c1a7d1
1 changed files with 6 additions and 1 deletions
|
|
@ -18,7 +18,12 @@ if (!name) {
|
|||
|
||||
login.generateOTP(name)
|
||||
.then(otp => {
|
||||
console.log(`https://${domain}?otp=${otp}`)
|
||||
if (domain === 'localhost') {
|
||||
console.log(`https://${domain}:8070?otp=${otp}`)
|
||||
} else {
|
||||
console.log(`https://${domain}?otp=${otp}`)
|
||||
}
|
||||
|
||||
process.exit(0)
|
||||
})
|
||||
.catch(err => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue