mirror of
https://gitea.com/gitea/tea.git
synced 2025-04-10 19:46:10 +02:00
use updated token
This commit is contained in:
parent
7b46afacee
commit
9a83e92a80
@ -110,6 +110,12 @@ var CmdLoginHelper = cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Once token is refreshed, get the latest from the updated config
|
||||
refreshedConfig := config.GetLoginByHost(wants["host"])
|
||||
if refreshedConfig != nil {
|
||||
userConfig = refreshedConfig
|
||||
}
|
||||
}
|
||||
|
||||
_, err = fmt.Fprintf(os.Stdout, "protocol=%s\nhost=%s\nusername=%s\npassword=%s\n", host.Scheme, host.Host, userConfig.User, userConfig.Token)
|
||||
|
Loading…
x
Reference in New Issue
Block a user