* Fix typo of MSSQL

* Fix typo: validates

* Fix typo

* fix comment with space

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
successgo 2020-06-22 23:21:11 +08:00 committed by GitHub
parent 121103fecf
commit 4dee08a6b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)