Fixed nil password causing invalid dereferences

This commit is contained in:
BetaPictoris
2023-10-27 16:02:47 -07:00
parent 667cf731fd
commit a99d63ab12
2 changed files with 3 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -169,7 +169,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"`