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:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-05-08 17:20:58 +0300
committerGitHub <noreply@github.com>2025-05-08 17:20:58 +0300
commitfe3b1c9b52f584b0f045907585b206344fed55db (patch)
treeaeef0fa82a0355ee899ec3aecee23045a327a6dc /database/model
parentd39ccf4b8f77f99d4468580085e9d89e8b5f0b1c (diff)
chore: implement 2fa auth (#2968)
* chore: implement 2fa auth from #2786 * chore: format code * chore: replace two factor token input with qr-code * chore: requesting confirmation of setting/removing two-factor authentication otpauth library was taken from cdnjs * chore: revert changes in `ClipboardManager` don't need it. * chore: removing twoFactor prop in settings page * chore: remove `twoFactorQr` object in `mounted` function
Diffstat (limited to 'database/model')
-rw-r--r--database/model/model.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/database/model/model.go b/database/model/model.go
index 7a20de16..2e7095d3 100644
--- a/database/model/model.go
+++ b/database/model/model.go
@@ -21,10 +21,9 @@ const (
)
type User struct {
- Id int `json:"id" gorm:"primaryKey;autoIncrement"`
- Username string `json:"username"`
- Password string `json:"password"`
- LoginSecret string `json:"loginSecret"`
+ Id int `json:"id" gorm:"primaryKey;autoIncrement"`
+ Username string `json:"username"`
+ Password string `json:"password"`
}
type Inbound struct {