Added an error message when no email address is used on login

This commit is contained in:
Godwin
2017-08-02 21:12:45 -07:00
parent 1cad5e99c8
commit 3da881bde4
6 changed files with 14 additions and 48 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class UserMailer < ActionMailer::Base
@user = User.find(@request.data['user'].to_i) if @request.data['user'].present?
mail to: administrators, subject: clean_subject(subject)
mail to: administrators, subject: clean_subject(subject), reply_to: @user.present? ? @user.named_email : nil
end
def contact(from, subject, message, email_list)