fix lamassu-register for localhost port

This commit is contained in:
Josh Harvey 2017-07-31 12:13:10 +02:00
parent a2b6b02e06
commit 8fd2c1a7d1

View file

@ -18,7 +18,12 @@ if (!name) {
login.generateOTP(name) login.generateOTP(name)
.then(otp => { .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) process.exit(0)
}) })
.catch(err => { .catch(err => {