1
0
Fork 0

Updating custom css field should also happen when updating the password

Bug introduced in PR #627
This commit is contained in:
Frédéric Guillot 2020-04-25 20:18:10 -07:00
parent 619aa58fb3
commit eb8d8e84f2

View file

@ -172,11 +172,10 @@ func (s *Storage) UpdateUser(user *model.User) error {
if err != nil {
return fmt.Errorf(`store: unable to update user: %v`, err)
}
err = s.UpdateExtraField(user.ID, "custom_css", user.Extra["custom_css"])
if err != nil {
return fmt.Errorf(`store: unable to update user css: %v`, err)
}
if err := s.UpdateExtraField(user.ID, "custom_css", user.Extra["custom_css"]); err != nil {
return fmt.Errorf(`store: unable to update user custom css: %v`, err)
}
return nil