Browse Source

Introduced a much cleaner token name (#837)

master
Leo Lamprecht 8 years ago
committed by GitHub
parent
commit
6332196b27
  1. 5
      src/providers/sh/commands/login.js

5
src/providers/sh/commands/login.js

@ -66,7 +66,10 @@ const help = () => {
// token: should be used to verify the status of the login process // token: should be used to verify the status of the login process
// securityCode: will be sent to the user in the email body // securityCode: will be sent to the user in the email body
const getVerificationData = async ({ apiUrl, email }) => { const getVerificationData = async ({ apiUrl, email }) => {
const tokenName = `Now CLI ${version}${platform()}-${arch()} (${hostname()})` const hyphens = new RegExp('-', 'g')
const host = hostname().replace(hyphens, ' ').replace('.local', '')
const tokenName = `Now CLI on ${host}`
const data = JSON.stringify({ email, tokenName }) const data = JSON.stringify({ email, tokenName })
debug('POST /now/registration') debug('POST /now/registration')

Loading…
Cancel
Save