Commit 52663760816e1f6d3da357316b956447107c693e

Do not send password by email when sending the activation email

Commit diff

app/views/mailer/signup_notification.rhtml

 
11Hello,
22
3Your gitorious.org account has been created.
4
5 Username: <%= @user.login %>
6 Password: <%= @user.password %>
3Your gitorious.org account has been created, your username is <%= @user.login %>
74
85Please visit this url to activate your account:
96
toggle raw diff

spec/models/mailer_spec.rb

 
2626 mail.to.should == [user.email]
2727 mail.subject.should == "[Gitorious] Please activate your new account"
2828 mail.body.should match(/users\/activate\/#{user.activation_code}/)
29 mail.body.should match(/Username: #{user.login}$/)
30 mail.body.should match(/Password: fubar$/)
29 mail.body.should match(/username is #{user.login}$/)
3130
3231 Mailer.deliver(mail)
3332 Mailer.deliveries.should == [mail]
toggle raw diff