diff --git a/internal/httpd/webadmin.go b/internal/httpd/webadmin.go index 778b6d74..00b3a696 100644 --- a/internal/httpd/webadmin.go +++ b/internal/httpd/webadmin.go @@ -4316,6 +4316,9 @@ func (s *httpdServer) handleOAuth2TokenRedirect(w http.ResponseWriter, r *http.R } func updateSMTPSecrets(newConfigs, currentConfigs *dataprovider.SMTPConfigs) { + if currentConfigs == nil { + currentConfigs = &dataprovider.SMTPConfigs{} + } if newConfigs.Password.IsNotPlainAndNotEmpty() { newConfigs.Password = currentConfigs.Password }