diff --git a/console/openapi-gen-angular/main.go b/console/openapi-gen-angular/main.go index f928b8c0b..a9a4241f1 100644 --- a/console/openapi-gen-angular/main.go +++ b/console/openapi-gen-angular/main.go @@ -236,9 +236,6 @@ func enumDescriptions(def Definition) (output []string) { func convertRefToClassName(prefixesToRemove []string) func(string) string { return func(input string) string { - if input == "" { - return "Object" - } cleanRef := strings.TrimPrefix(input, "#/definitions/") for _, prefix := range prefixesToRemove { if strings.HasPrefix(cleanRef, prefix) { diff --git a/console/ui/src/app/base/base.component.ts b/console/ui/src/app/base/base.component.ts index fc7e0b964..1d3bcdd94 100644 --- a/console/ui/src/app/base/base.component.ts +++ b/console/ui/src/app/base/base.component.ts @@ -110,7 +110,7 @@ export class BaseComponent implements OnInit, OnDestroy { getSessionRole(): UserRole { return this.authService.sessionRole; - }x + } getUsername(): string { return this.authService.username; diff --git a/migrate/sql/20240801100859-add-console-user-mfa.sql b/migrate/sql/20240801100859-add-console-user-mfa.sql index 8b4d1f5c7..a6c899081 100644 --- a/migrate/sql/20240801100859-add-console-user-mfa.sql +++ b/migrate/sql/20240801100859-add-console-user-mfa.sql @@ -1,5 +1,5 @@ /* - * Copyright 2023 The Nakama Authors + * Copyright 2024 The Nakama Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/server/api_authenticate.go b/server/api_authenticate.go index 258083b7f..a3d9523c3 100644 --- a/server/api_authenticate.go +++ b/server/api_authenticate.go @@ -150,8 +150,6 @@ func (s *ApiServer) AuthenticateCustom(ctx context.Context, in *api.Authenticate } } - status.Error(codes.Unauthenticated, "User authentication invalid.") - if in.Account == nil || in.Account.Id == "" { return nil, status.Error(codes.InvalidArgument, "Custom ID is required.") } else if invalidCharsRegex.MatchString(in.Account.Id) { diff --git a/server/encryption.go b/server/encryption.go index 4fc44c70c..4cdd2bf29 100644 --- a/server/encryption.go +++ b/server/encryption.go @@ -1,3 +1,14 @@ +// Copyright 2024 Heroic Labs. +// All rights reserved. +// +// NOTICE: All information contained herein is, and remains the property of Heroic +// Labs. and its suppliers, if any. The intellectual and technical concepts +// contained herein are proprietary to Heroic Labs. and its suppliers and may be +// covered by U.S. and Foreign Patents, patents in process, and are protected by +// trade secret or copyright law. Dissemination of this information or reproduction +// of this material is strictly forbidden unless prior written permission is +// obtained from Heroic Labs. + package server import ( diff --git a/server/jwt.go b/server/jwt.go index 23145555e..3d9c186e1 100644 --- a/server/jwt.go +++ b/server/jwt.go @@ -1,13 +1,16 @@ -// Copyright 2022 Heroic Labs. -// All rights reserved. +// Copyright 2024 The Nakama Authors // -// NOTICE: All information contained herein is, and remains the property of Heroic -// Labs. and its suppliers, if any. The intellectual and technical concepts -// contained herein are proprietary to Heroic Labs. and its suppliers and may be -// covered by U.S. and Foreign Patents, patents in process, and are protected by -// trade secret or copyright law. Dissemination of this information or reproduction -// of this material is strictly forbidden unless prior written permission is -// obtained from Heroic Labs. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server diff --git a/server/mfa.go b/server/mfa.go index 31654dbe0..0d98e60d8 100644 --- a/server/mfa.go +++ b/server/mfa.go @@ -1,13 +1,16 @@ -// Copyright 2022 Heroic Labs. -// All rights reserved. +// Copyright 2024 The Nakama Authors // -// NOTICE: All information contained herein is, and remains the property of Heroic -// Labs. and its suppliers, if any. The intellectual and technical concepts -// contained herein are proprietary to Heroic Labs. and its suppliers and may be -// covered by U.S. and Foreign Patents, patents in process, and are protected by -// trade secret or copyright law. Dissemination of this information or reproduction -// of this material is strictly forbidden unless prior written permission is -// obtained from Heroic Labs. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. package server