aboutsummaryrefslogtreecommitdiffstats
path: root/models/oauth2_application.go
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2021-07-08 07:38:13 -0400
committerGitHub <noreply@github.com>2021-07-08 13:38:13 +0200
commite0296b6a6de6450c474fdf7fe62635a05beb49ab (patch)
tree1e924ac17324f60f6607e65cb51a325b948d1c62 /models/oauth2_application.go
parentbc6f060b8cd89685cc32980c4f03cba58850cab1 (diff)
downloadgitea-e0296b6a6de6450c474fdf7fe62635a05beb49ab.tar.gz
gitea-e0296b6a6de6450c474fdf7fe62635a05beb49ab.zip
Fix various documentation, user-facing, and source comment typos (#16367)
* Fix various doc, user-facing, and source comment typos Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
Diffstat (limited to 'models/oauth2_application.go')
-rw-r--r--models/oauth2_application.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/oauth2_application.go b/models/oauth2_application.go
index 3509dba54e..5a924763be 100644
--- a/models/oauth2_application.go
+++ b/models/oauth2_application.go
@@ -210,7 +210,7 @@ func UpdateOAuth2Application(opts UpdateOAuth2ApplicationOptions) (*OAuth2Applic
return nil, err
}
if app.UID != opts.UserID {
- return nil, fmt.Errorf("UID missmatch")
+ return nil, fmt.Errorf("UID mismatch")
}
app.Name = opts.Name
@@ -376,7 +376,7 @@ func getOAuth2AuthorizationByCode(e Engine, code string) (auth *OAuth2Authorizat
//////////////////////////////////////////////////////
-// OAuth2Grant represents the permission of an user for a specifc application to access resources
+// OAuth2Grant represents the permission of an user for a specific application to access resources
type OAuth2Grant struct {
ID int64 `xorm:"pk autoincr"`
UserID int64 `xorm:"INDEX unique(user_application)"`
@@ -537,7 +537,7 @@ type OAuth2Token struct {
jwt.StandardClaims
}
-// ParseOAuth2Token parses a singed jwt string
+// ParseOAuth2Token parses a signed jwt string
func ParseOAuth2Token(jwtToken string) (*OAuth2Token, error) {
parsedToken, err := jwt.ParseWithClaims(jwtToken, &OAuth2Token{}, func(token *jwt.Token) (interface{}, error) {
if token.Method == nil || token.Method.Alg() != oauth2.DefaultSigningKey.SigningMethod().Alg() {