mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-08 00:50:28 +08:00
feat: fix VerificationRecord.IsUsed JSON Field Mapping
This commit is contained in:
@ -57,7 +57,7 @@ type VerificationRecord struct {
|
|||||||
Receiver string `xorm:"varchar(100) index notnull" json:"receiver"`
|
Receiver string `xorm:"varchar(100) index notnull" json:"receiver"`
|
||||||
Code string `xorm:"varchar(10) notnull" json:"code"`
|
Code string `xorm:"varchar(10) notnull" json:"code"`
|
||||||
Time int64 `xorm:"notnull" json:"time"`
|
Time int64 `xorm:"notnull" json:"time"`
|
||||||
IsUsed bool
|
IsUsed bool `xorm:"notnull" json:"isUsed"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsAllowSend(user *User, remoteAddr, recordType string) error {
|
func IsAllowSend(user *User, remoteAddr, recordType string) error {
|
||||||
|
Reference in New Issue
Block a user