Permalink
Browse files

do not send plaintext password via email

  • Loading branch information...
1 parent b7bd68f commit a547269ff2d062aa3fb8b03472815d903fd2fa81 @kratob kratob committed Feb 7, 2012
@@ -15,8 +15,7 @@
login..........................................
%code= @user.email
%p{:style => "color:#767676; font-weight: normal; margin: 0; padding: 0; line-height: 28px; font-size: 16px;font-family: Helvetica, Arial, sans-serif; "}
- password..................................
- %code= @password
+ Please use the "forget password" functionality to set a password.
%p{:style => "color:#767676; font-weight: normal; margin: 0; padding: 0; line-height: 28px; font-size: 12px;font-family: Helvetica, Arial, sans-serif; "}
= link_to "Click here to login", root_url
%td{:style => "font-size: 1px; line-height: 1px;", :width => "21"}
@@ -44,7 +44,7 @@
it "should return valid url to repo" do
project = Project.new(:path => "somewhere")
- project.url_to_repo.should == "#{GIT_HOST['git_user']}@localhost:somewhere.git"
+ project.url_to_repo.should == "#{GIT_HOST['git_user']}@#{GIT_HOST['host']}:somewhere.git"
end
it "should return path to repo" do
@@ -155,7 +155,7 @@
it { should include(id: @commit.id) }
it { should include(message: @commit.safe_message) }
it { should include(timestamp: @commit.date.xmlschema) }
- it { should include(url: "http://localhost/#{project.code}/commits/#{@commit.id}") }
+ it { should include(url: "http://#{GIT_HOST['host']}/#{project.code}/commits/#{@commit.id}") }
context "with a author" do
subject { @data[:commits].first[:author] }
@@ -44,13 +44,13 @@
click_button "Save"
end
- it "should send valid email to user with email & password" do
+ it "should send valid email to user with email, but without password" do
click_button "Save"
user = User.last
email = ActionMailer::Base.deliveries.last
email.subject.should have_content("Account was created")
email.body.should have_content(user.email)
- email.body.should have_content(@password)
+ email.body.should_not have_content(@password)
end
end

0 comments on commit a547269

Please sign in to comment.