Fix web service auth name

This commit is contained in:
Ben Toogood 2020-05-26 17:43:45 +01:00
parent c3b404bab0
commit d6c1fbf841

View File

@ -444,7 +444,7 @@ func (s *service) Init(opts ...Option) error {
func (s *service) Run() error {
// generate an auth account
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 {
return err
}