feat: 2fa/otp support

This commit is contained in:
Noah Hsu
2022-08-06 01:22:13 +08:00
parent b51e664543
commit a6ed4afdae
6 changed files with 83 additions and 1 deletions

View File

@ -29,6 +29,7 @@ type User struct {
// 8: webdav read
// 9: webdav write
Permission int32 `json:"permission"`
OtpSecret string
}
func (u User) IsGuest() bool {