mirror of
https://github.com/datarhei/core.git
synced 2025-10-08 17:30:52 +08:00
Allow an alias for an identity name
This commit is contained in:
@@ -979,7 +979,7 @@ func (a *api) start(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if identity != nil {
|
||||
u.User = url.UserPassword(config.Owner, identity.GetServiceBasicAuth())
|
||||
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
|
||||
} else {
|
||||
u.User = url.User(config.Owner)
|
||||
}
|
||||
@@ -1007,7 +1007,7 @@ func (a *api) start(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if identity != nil {
|
||||
u.User = url.UserPassword(config.Owner, identity.GetServiceBasicAuth())
|
||||
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
|
||||
} else {
|
||||
u.User = url.User(config.Owner)
|
||||
}
|
||||
@@ -1037,7 +1037,7 @@ func (a *api) start(ctx context.Context) error {
|
||||
}
|
||||
|
||||
if identity != nil {
|
||||
u.User = url.UserPassword(config.Owner, identity.GetServiceBasicAuth())
|
||||
u.User = url.UserPassword(identity.Name(), identity.GetServiceBasicAuth())
|
||||
}
|
||||
|
||||
if len(config.Domain) != 0 {
|
||||
|
Reference in New Issue
Block a user