diff options
author | successgo <success.go@gaodacheng.com> | 2020-06-22 23:21:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 11:21:11 -0400 |
commit | 4dee08a6b4d3ba413ddcd6a8bb3e581b287dcb5d (patch) | |
tree | 916fd8691ef578cce4580b3414f82e2284d4f954 /modules | |
parent | 121103fecf0fb72ccd8bf1fe2b63b3d20d1d4426 (diff) | |
download | gitea-4dee08a6b4d3ba413ddcd6a8bb3e581b287dcb5d.tar.gz gitea-4dee08a6b4d3ba413ddcd6a8bb3e581b287dcb5d.zip |
Fix typo (#12013)
* Fix typo of MSSQL
* Fix typo: validates
* Fix typo
* fix comment with space
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/api.go b/modules/context/api.go index acecf8f264..fdc000e4a5 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) |