Backend: Refactor user entity and add pro package

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-10-03 13:50:30 +02:00
parent 1516f556c2
commit 46b9239026
38 changed files with 1037 additions and 652 deletions

View File

@@ -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)})