support login with 2fa

This commit is contained in:
MaysWind
2020-10-21 00:30:08 +08:00
parent 6896e1966e
commit 4e36558b43
9 changed files with 164 additions and 23 deletions
+6
View File
@@ -0,0 +1,6 @@
package models
type AuthResponse struct {
Token string `json:"token"`
Need2FA bool `json:"need2FA"`
}