feat: fix VerificationRecord.IsUsed JSON Field Mapping

This commit is contained in:
Xin-Fax 2024-12-18 14:56:54 +09:00 committed by GitHub
parent 48adc050d6
commit 185ab9750a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ type VerificationRecord struct {
Receiver string `xorm:"varchar(100) index notnull" json:"receiver"`
Code string `xorm:"varchar(10) notnull" json:"code"`
Time int64 `xorm:"notnull" json:"time"`
IsUsed bool
IsUsed bool `xorm:"notnull" json:"isUsed"`
}
func IsAllowSend(user *User, remoteAddr, recordType string) error {