mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 22:00:39 +00:00
Created FederatedUser
This commit is contained in:
parent
e477181e23
commit
67f3f66be4
2 changed files with 46 additions and 0 deletions
|
@ -35,6 +35,10 @@ func ValidateNotEmpty(value any, fieldName string) []string {
|
|||
if v.IsZero() {
|
||||
isValid = false
|
||||
}
|
||||
case int64:
|
||||
if v == 0 {
|
||||
isValid = false
|
||||
}
|
||||
default:
|
||||
isValid = false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue