Fix User struct from having not null passwords

This is required for LDAP auth to work, blank passwords don't work anyway.
This commit is contained in:
Daniel Hall
2024-02-17 22:13:52 -08:00
parent 408d325c2c
commit 6301cb25bc
+1 -1
View File
@@ -290,7 +290,7 @@ type User struct {
ID int `gorm:"primary_key"`
CreatedAt time.Time
Name string `gorm:"not null; unique_index" sql:"default: null"`
Password string `gorm:"not null" sql:"default: null"`
Password string `sql:"default: null"`
LastFMSession string `sql:"default: null"`
ListenBrainzURL string `sql:"default: null"`
ListenBrainzToken string `sql:"default: null"`