##// END OF EJS Templates
remove redundant "email" parameter from MailHandler#create_user_from_email...
Toshi MARUYAMA -
r8401:16cb0ce1c968
parent child
Show More
@@ -61,7 +61,7 class MailHandler < ActionMailer::Base
61 61 when 'accept'
62 62 @user = User.anonymous
63 63 when 'create'
64 @user = create_user_from_email(email)
64 @user = create_user_from_email
65 65 if @user
66 66 logger.info "MailHandler: [#{@user.login}] account created" if logger && logger.info
67 67 Mailer.deliver_account_information(@user, @user.password)
@@ -356,7 +356,7 class MailHandler < ActionMailer::Base
356 356
357 357 # Creates a User for the +email+ sender
358 358 # Returns the user or nil if it could not be created
359 def create_user_from_email(email)
359 def create_user_from_email
360 360 addr = email.from_addrs.to_a.first
361 361 if addr && !addr.spec.blank?
362 362 user = self.class.new_user_from_attributes(addr.spec, addr.name)
General Comments 0
You need to be logged in to leave comments. Login now