summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2022-08-08 21:53:40 -0400
committerGitHub <noreply@github.com>2022-08-09 09:53:40 +0800
commit820031e556af9548aa07e4de2669ca52bd7f63cb (patch)
tree81438ae59dbc1e14040e30c964aabc03e2f5f19c /services
parent2660b0397aaea041c2d1f4d247d65e92a377c379 (diff)
downloadgitea-820031e556af9548aa07e4de2669ca52bd7f63cb.tar.gz
gitea-820031e556af9548aa07e4de2669ca52bd7f63cb.zip
Fix typo in source (#20723)
Algorightm -> Algorithm Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'services')
-rw-r--r--services/auth/source/oauth2/jwtsigningkey.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/auth/source/oauth2/jwtsigningkey.go b/services/auth/source/oauth2/jwtsigningkey.go
index 24f2c41119..d6b3c05a4f 100644
--- a/services/auth/source/oauth2/jwtsigningkey.go
+++ b/services/auth/source/oauth2/jwtsigningkey.go
@@ -31,11 +31,11 @@ import (
// ErrInvalidAlgorithmType represents an invalid algorithm error.
type ErrInvalidAlgorithmType struct {
- Algorightm string
+ Algorithm string
}
func (err ErrInvalidAlgorithmType) Error() string {
- return fmt.Sprintf("JWT signing algorithm is not supported: %s", err.Algorightm)
+ return fmt.Sprintf("JWT signing algorithm is not supported: %s", err.Algorithm)
}
// JWTSigningKey represents a algorithm/key pair to sign JWTs