Fix web service auth name
This commit is contained in:
parent
c3b404bab0
commit
d6c1fbf841
@ -444,7 +444,7 @@ func (s *service) Init(opts ...Option) error {
|
|||||||
func (s *service) Run() error {
|
func (s *service) Run() error {
|
||||||
// generate an auth account
|
// generate an auth account
|
||||||
srvID := s.opts.Service.Server().Options().Id
|
srvID := s.opts.Service.Server().Options().Id
|
||||||
srvName := s.opts.Service.Name()
|
srvName := s.Options().Name
|
||||||
if err := authutil.Generate(srvID, srvName, s.opts.Service.Options().Auth); err != nil {
|
if err := authutil.Generate(srvID, srvName, s.opts.Service.Options().Auth); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user