mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 12:25:10 +02:00
Fix bug
This commit is contained in:
parent
b5520f098f
commit
b00cd8de90
@ -8,6 +8,7 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
"code.gitea.io/gitea/models/db"
|
||||
"code.gitea.io/gitea/modules/timeutil"
|
||||
)
|
||||
|
||||
@ -40,6 +41,10 @@ type Secret struct {
|
||||
CreatedUnix timeutil.TimeStamp `xorm:"created NOTNULL"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
db.RegisterModel(new(Secret))
|
||||
}
|
||||
|
||||
// Validate validates the required fields and formats.
|
||||
func (s *Secret) Validate() error {
|
||||
switch {
|
||||
|
Loading…
x
Reference in New Issue
Block a user