mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
Merge pull request #137 from Skud/confirmationwords
add more verbiage to confirmation email
This commit is contained in:
@@ -1,9 +1,41 @@
|
||||
- site_name = Growstuff::Application.config.site_name
|
||||
%p
|
||||
Welcome
|
||||
= @resource.email
|
||||
Welcome,
|
||||
= @resource.login_name
|
||||
!
|
||||
|
||||
%p You can confirm your account email through the link below:
|
||||
%p
|
||||
Your account on #{site_name} has been created. You just need to confirm
|
||||
your email address through the link below:
|
||||
|
||||
%p
|
||||
= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token)
|
||||
|
||||
%p
|
||||
Once you're confirmed, you can sign in with your login name
|
||||
(#{@resource.login_name}) or email address (#{@resource.email}),
|
||||
and the password you provided when you signed up. Note that your
|
||||
login name and password are case sensitive.
|
||||
|
||||
%p
|
||||
We're excited to have you as a member, and hope you'll enjoy
|
||||
what #{site_name} has to offer. Take a look around the site,
|
||||
=link_to 'plant some things', url_for(:controller => '/crops', :only_path => false)
|
||||
, and feel free to drop in on the
|
||||
=link_to 'forums', url_for(:controller => '/forums', :only_path => false)
|
||||
if you have any questions or feedback.
|
||||
|
||||
%p
|
||||
We'd also appreciate it if you'd read our
|
||||
=link_to 'Community Guidelines', url_for(:controller => '/policy', :action => 'community', :only_path => false)
|
||||
, and make sure you follow them. We want #{site_name} to be a
|
||||
friendly, welcoming environment for everyone, and we hope you'll
|
||||
help us keep it that way.
|
||||
|
||||
%p
|
||||
Looking forward to seeing you!
|
||||
|
||||
%p
|
||||
The #{site_name} team.
|
||||
%br/
|
||||
=link_to root_url, root_url
|
||||
|
||||
@@ -40,10 +40,13 @@ Growstuff::Application.configure do
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => "localhost",
|
||||
:port => 25,
|
||||
:domain => "growstuff.org"
|
||||
:port => '587',
|
||||
:address => 'smtp.mandrillapp.com',
|
||||
:user_name => ENV['MANDRILL_USERNAME'],
|
||||
:password => ENV['MANDRILL_APIKEY'],
|
||||
:authentication => :login
|
||||
}
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
|
||||
Growstuff::Application.configure do
|
||||
config.site_name = "Growstuff (dev)"
|
||||
|
||||
@@ -56,7 +56,7 @@ en:
|
||||
failure: 'Could not authenticate you from %{kind} because "%{reason}".'
|
||||
mailer:
|
||||
confirmation_instructions:
|
||||
subject: 'Confirmation instructions'
|
||||
subject: 'Welcome to Growstuff. Please confirm your account.'
|
||||
reset_password_instructions:
|
||||
subject: 'Reset password instructions'
|
||||
unlock_instructions:
|
||||
|
||||
@@ -11,5 +11,9 @@ describe 'devise/mailer/confirmation_instructions.html.haml', :type => "view" do
|
||||
it 'should have a confirmation link' do
|
||||
rendered.should contain 'Confirm my account'
|
||||
end
|
||||
|
||||
it 'should have a link to the homepage' do
|
||||
rendered.should contain root_url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user