Commit 1814a474 authored by David Venhoek's avatar David Venhoek Committed by Sietse Ringers
Browse files

Made check whether user registered with email more robust.

parent 304a4801
......@@ -505,7 +505,7 @@ func (s *Server) handleRegister(w http.ResponseWriter, r *http.Request) {
}
// Send email if user specified email address
if msg.Email != nil && s.conf.EmailServer != "" {
if msg.Email != nil && *msg.Email != "" && s.conf.EmailServer != "" {
// Fetch template and configuration data for users language, falling back if needed
template, ok := s.conf.RegistrationEmailTemplates[msg.Language]
if !ok {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment