mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backend: Refactor user entity and add pro package
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -54,7 +54,7 @@ func CreateSession(router *gin.RouterGroup) {
|
||||
data.User = entity.Guest
|
||||
}
|
||||
} else if f.HasCredentials() {
|
||||
user := entity.FindPersonByUserName(f.UserName)
|
||||
user := entity.FindUserByName(f.UserName)
|
||||
|
||||
if user == nil {
|
||||
c.AbortWithStatusJSON(400, gin.H{"error": i18n.Msg(i18n.ErrInvalidCredentials)})
|
||||
|
||||
Reference in New Issue
Block a user