From 4dee08a6b4d3ba413ddcd6a8bb3e581b287dcb5d Mon Sep 17 00:00:00 2001 From: successgo Date: Mon, 22 Jun 2020 23:21:11 +0800 Subject: [PATCH] Fix typo (#12013) * Fix typo of MSSQL * Fix typo: validates * Fix typo * fix comment with space Co-authored-by: techknowlogick --- models/org.go | 2 +- modules/context/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/org.go b/models/org.go index 58afc5cb595..9fa213e17e2 100644 --- a/models/org.go +++ b/models/org.go @@ -717,7 +717,7 @@ func (org *User) getUserTeamIDs(e Engine, userID int64) ([]int64, error) { Find(&teamIDs) } -// TeamsWithAccessToRepo returns all teamsthat have given access level to the repository. +// TeamsWithAccessToRepo returns all teams that have given access level to the repository. func (org *User) TeamsWithAccessToRepo(repoID int64, mode AccessMode) ([]*Team, error) { return GetTeamsWithAccessToRepo(org.ID, repoID, mode) } diff --git a/modules/context/api.go b/modules/context/api.go index acecf8f2647..fdc000e4a5b 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -169,7 +169,7 @@ func (ctx *APIContext) RequireCSRF() { } } -// CheckForOTP validateds OTP +// CheckForOTP validates OTP func (ctx *APIContext) CheckForOTP() { otpHeader := ctx.Req.Header.Get("X-Gitea-OTP") twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)