diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-03-18 00:30:05 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-03-18 01:01:15 +0300 |
| commit | f0f98c712225269e1a3db1796eff88ebecaf2a2a (patch) | |
| tree | 9894ebdd16f9f6b74de5b997b76f2c449079f734 /web/service | |
| parent | 554981d9d347c88a5c5973aa1fd711676c0cd7e9 (diff) | |
Add Go code analyzer workflow
Diffstat (limited to 'web/service')
| -rw-r--r-- | web/service/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/user.go b/web/service/user.go index 0a2a3f3e..6fcf17e7 100644 --- a/web/service/user.go +++ b/web/service/user.go @@ -95,7 +95,7 @@ func (s *UserService) CheckUser(username string, password string, twoFactorCode } if gotp.NewDefaultTOTP(twoFactorToken).Now() != twoFactorCode { - return nil, errors.New("invalid 2fa code") + return nil, errors.New("invalid 2fa code") } } |
