AUTH-3394: Ensure scheme on token command

This commit is contained in:
Michael Borkenstein 2021-03-17 10:50:03 -05:00
parent 9023daba24
commit 2c75326021
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ func generateToken(c *cli.Context) error {
if err := raven.SetDSN(sentryDSN); err != nil {
return err
}
appURL, err := url.Parse(c.String("app"))
appURL, err := url.Parse(ensureURLScheme(c.String("app")))
if err != nil || c.NumFlags() < 1 {
fmt.Fprintln(os.Stderr, "Please provide a url.")
return err