mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
oauthutil: Print redirection URI if using own credentials.
This commit is contained in:
parent
733d6fe56c
commit
84d4d7f9d9
@ -243,6 +243,10 @@ func Config(id, name string, config *oauth2.Config) error {
|
|||||||
config, changed := overrideCredentials(name, config)
|
config, changed := overrideCredentials(name, config)
|
||||||
automatic := fs.ConfigFileGet(name, fs.ConfigAutomatic) != ""
|
automatic := fs.ConfigFileGet(name, fs.ConfigAutomatic) != ""
|
||||||
|
|
||||||
|
if changed {
|
||||||
|
fmt.Printf("Make sure your Redirect URL is set to %q in your custom config.\n", config.RedirectURL)
|
||||||
|
}
|
||||||
|
|
||||||
// See if already have a token
|
// See if already have a token
|
||||||
tokenString := fs.ConfigFileGet(name, "token")
|
tokenString := fs.ConfigFileGet(name, "token")
|
||||||
if tokenString != "" {
|
if tokenString != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user