Fix typo (#12013)
* Fix typo of MSSQL * Fix typo: validates * Fix typo * fix comment with space Co-authored-by: techknowlogick <techknowlogick@gitea.io>release/v1.15
parent
121103fecf
commit
4dee08a6b4
|
@ -169,7 +169,7 @@ func (ctx *APIContext) RequireCSRF() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckForOTP validateds OTP
|
// CheckForOTP validates OTP
|
||||||
func (ctx *APIContext) CheckForOTP() {
|
func (ctx *APIContext) CheckForOTP() {
|
||||||
otpHeader := ctx.Req.Header.Get("X-Gitea-OTP")
|
otpHeader := ctx.Req.Header.Get("X-Gitea-OTP")
|
||||||
twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)
|
twofa, err := models.GetTwoFactorByUID(ctx.Context.User.ID)
|
||||||
|
|
Loading…
Reference in New Issue