Commit 52663760816e1f6d3da357316b956447107c693e
- Date: Tue Mar 04 12:54:26 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 52663760816e1f6d3da357316b956447107c693e
- Tree SHA1: 442eeef95417b9ada02e5ce76a2e0580847bf3db
Do not send password by email when sending the activation email
Commit diff
| |   |
| 1 | 1 | Hello, |
| 2 | 2 | |
| 3 | | Your gitorious.org account has been created. |
| 4 | | |
| 5 | | Username: <%= @user.login %> |
| 6 | | Password: <%= @user.password %> |
| 3 | Your gitorious.org account has been created, your username is <%= @user.login %> |
| 7 | 4 | |
| 8 | 5 | Please visit this url to activate your account: |
| 9 | 6 | |
| toggle raw diff |
--- a/app/views/mailer/signup_notification.rhtml
+++ b/app/views/mailer/signup_notification.rhtml
@@ -1,9 +1,6 @@
Hello,
-Your gitorious.org account has been created.
-
- Username: <%= @user.login %>
- Password: <%= @user.password %>
+Your gitorious.org account has been created, your username is <%= @user.login %>
Please visit this url to activate your account:
|
| |   |
| 26 | 26 | mail.to.should == [user.email] |
| 27 | 27 | mail.subject.should == "[Gitorious] Please activate your new account" |
| 28 | 28 | 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}$/) |
| 31 | 30 | |
| 32 | 31 | Mailer.deliver(mail) |
| 33 | 32 | Mailer.deliveries.should == [mail] |
| toggle raw diff |
--- a/spec/models/mailer_spec.rb
+++ b/spec/models/mailer_spec.rb
@@ -26,8 +26,7 @@ describe Mailer do
mail.to.should == [user.email]
mail.subject.should == "[Gitorious] Please activate your new account"
mail.body.should match(/users\/activate\/#{user.activation_code}/)
- mail.body.should match(/Username: #{user.login}$/)
- mail.body.should match(/Password: fubar$/)
+ mail.body.should match(/username is #{user.login}$/)
Mailer.deliver(mail)
Mailer.deliveries.should == [mail] |