fixup for 2fa auth in gitea
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -9,12 +9,14 @@ import (
|
||||
)
|
||||
|
||||
type Gogs struct {
|
||||
Token string
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
|
||||
func NewGogs(cfg configcli.Config) *Gogs {
|
||||
return &Gogs{
|
||||
Token: cfg.Source.Token,
|
||||
Username: cfg.Source.Username,
|
||||
Password: cfg.Source.Password,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user