Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-03-18 00:30:05 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-03-18 01:01:15 +0300
commitf0f98c712225269e1a3db1796eff88ebecaf2a2a (patch)
tree9894ebdd16f9f6b74de5b997b76f2c449079f734 /web/service
parent554981d9d347c88a5c5973aa1fd711676c0cd7e9 (diff)
Add Go code analyzer workflow
Diffstat (limited to 'web/service')
-rw-r--r--web/service/user.go2
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")
}
}