Auth: Improve user model and search in backend and frontend

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-03-18 09:00:50 +01:00
parent 772a850e1a
commit 57060844ba
10 changed files with 115 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
package form
import (
"time"
"github.com/urfave/cli/v2"
"github.com/photoprism/photoprism/pkg/authn"
@@ -24,6 +26,7 @@ type User struct {
BasePath string `json:"BasePath,omitempty" yaml:"BasePath,omitempty"`
UploadPath string `json:"UploadPath,omitempty" yaml:"UploadPath,omitempty"`
Password string `json:"Password,omitempty" yaml:"Password,omitempty"`
DeletedAt *time.Time `json:"DeletedAt,omitempty" yaml:"DeletedAt,omitempty"`
UserDetails *UserDetails `json:"Details,omitempty"`
}