Skip to content

Commit

Permalink
WebLogin - Add verification code (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Dec 11, 2023
1 parent f58e5b3 commit ebc697b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artifactory/utils/weblogin.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func DoWebLogin(serverDetails *config.ServerDetails) (token auth.CommonTokenPara
"Make sure the details you entered are correct and that Artifactory meets the version requirement."))
return
}
log.Info("Please log in to the JFrog platform using the opened browser.")
if err = browser.OpenURL(clientUtils.AddTrailingSlashIfNeeded(serverDetails.Url) + "ui/login?jfClientSession=" + uuidStr + "&jfClientName=JFrogCLI"); err != nil {
log.Info("After logging in via your web browser, please enter the code if prompted: "+uuidStr[len(uuidStr)-4:])
if err = browser.OpenURL(clientUtils.AddTrailingSlashIfNeeded(serverDetails.Url) + "ui/login?jfClientSession=" + uuidStr + "&jfClientName=JFrog-CLI&jfClientCode=1"); err != nil {
return
}
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit ebc697b

Please sign in to comment.