chore: ignore opt_secret while marshal

This commit is contained in:
Noah Hsu
2022-08-08 16:29:56 +08:00
parent 6f48a0a82a
commit d8b56042c3
2 changed files with 3 additions and 3 deletions

View File

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