Skip to content

Commit

Permalink
Add missing license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Sep 5, 2024
1 parent 039d8e4 commit 1acb27b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 25 deletions.
3 changes: 0 additions & 3 deletions console/openapi-gen-angular/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion console/ui/src/app/base/base.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class BaseComponent implements OnInit, OnDestroy {

getSessionRole(): UserRole {
return this.authService.sessionRole;
}x
}

getUsername(): string {
return this.authService.username;
Expand Down
2 changes: 1 addition & 1 deletion migrate/sql/20240801100859-add-console-user-mfa.sql
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions server/api_authenticate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
11 changes: 11 additions & 0 deletions server/encryption.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
21 changes: 12 additions & 9 deletions server/jwt.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down
21 changes: 12 additions & 9 deletions server/mfa.go
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 1acb27b

Please sign in to comment.