Feature #33658 » 33658.patch
| app/views/account/login.html.erb | ||
|---|---|---|
| 33 | 33 |
<% else %> |
| 34 | 34 |
<%= javascript_tag "$('#username').focus();" %>
|
| 35 | 35 |
<% end %> |
| 36 | ||
| 37 |
<% content_for :header_tags do %> |
|
| 38 |
<%= robot_exclusion_tag %> |
|
| 39 |
<% end %> |
|
| app/views/account/lost_password.html.erb | ||
|---|---|---|
| 9 | 9 |
</p> |
| 10 | 10 |
</div> |
| 11 | 11 |
<% end %> |
| 12 | ||
| 13 |
<% content_for :header_tags do %> |
|
| 14 |
<%= robot_exclusion_tag %> |
|
| 15 |
<% end %> |
|
| app/views/account/password_recovery.html.erb | ||
|---|---|---|
| 21 | 21 |
</div> |
| 22 | 22 |
<p><%= submit_tag l(:button_save) %></p> |
| 23 | 23 |
<% end %> |
| 24 | ||
| 25 |
<% content_for :header_tags do %> |
|
| 26 |
<%= robot_exclusion_tag %> |
|
| 27 |
<% end %> |
|
| app/views/account/register.html.erb | ||
|---|---|---|
| 39 | 39 | |
| 40 | 40 |
<%= submit_tag l(:button_submit) %> |
| 41 | 41 |
<% end %> |
| 42 | ||
| 43 |
<% content_for :header_tags do %> |
|
| 44 |
<%= robot_exclusion_tag %> |
|
| 45 |
<% end %> |
|
| test/functional/account_controller_test.rb | ||
|---|---|---|
| 32 | 32 | |
| 33 | 33 |
assert_select 'input[name=username]' |
| 34 | 34 |
assert_select 'input[name=password]' |
| 35 |
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' |
|
| 35 | 36 |
end |
| 36 | 37 | |
| 37 | 38 |
def test_get_login_while_logged_in_should_redirect_to_back_url_if_present |
| ... | ... | |
| 293 | 294 | |
| 294 | 295 |
assert_select 'input[name=?]', 'user[password]' |
| 295 | 296 |
assert_select 'input[name=?]', 'user[password_confirmation]' |
| 297 |
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' |
|
| 296 | 298 |
end |
| 297 | 299 |
end |
| 298 | 300 | |
| ... | ... | |
| 405 | 407 |
get :lost_password |
| 406 | 408 |
assert_response :success |
| 407 | 409 |
assert_select 'input[name=mail]' |
| 410 |
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' |
|
| 408 | 411 |
end |
| 409 | 412 | |
| 410 | 413 |
def test_lost_password_for_active_user_should_create_a_token |
| ... | ... | |
| 524 | 527 |
assert_response :success |
| 525 | 528 | |
| 526 | 529 |
assert_select 'input[type=hidden][name=token][value=?]', token.value |
| 530 |
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive' |
|
| 527 | 531 |
end |
| 528 | 532 | |
| 529 | 533 |
def test_get_lost_password_with_invalid_token_should_redirect |