Feature #33658 » 33658.patch
| app/views/account/login.html.erb | ||
|---|---|---|
|
<% else %>
|
||
|
<%= javascript_tag "$('#username').focus();" %>
|
||
|
<% end %>
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= robot_exclusion_tag %>
|
||
|
<% end %>
|
||
| app/views/account/lost_password.html.erb | ||
|---|---|---|
|
</p>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= robot_exclusion_tag %>
|
||
|
<% end %>
|
||
| app/views/account/password_recovery.html.erb | ||
|---|---|---|
|
</div>
|
||
|
<p><%= submit_tag l(:button_save) %></p>
|
||
|
<% end %>
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= robot_exclusion_tag %>
|
||
|
<% end %>
|
||
| app/views/account/register.html.erb | ||
|---|---|---|
|
<%= submit_tag l(:button_submit) %>
|
||
|
<% end %>
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= robot_exclusion_tag %>
|
||
|
<% end %>
|
||
| test/functional/account_controller_test.rb | ||
|---|---|---|
|
assert_select 'input[name=username]'
|
||
|
assert_select 'input[name=password]'
|
||
|
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive'
|
||
|
end
|
||
|
def test_get_login_while_logged_in_should_redirect_to_back_url_if_present
|
||
| ... | ... | |
|
assert_select 'input[name=?]', 'user[password]'
|
||
|
assert_select 'input[name=?]', 'user[password_confirmation]'
|
||
|
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive'
|
||
|
end
|
||
|
end
|
||
| ... | ... | |
|
get :lost_password
|
||
|
assert_response :success
|
||
|
assert_select 'input[name=mail]'
|
||
|
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive'
|
||
|
end
|
||
|
def test_lost_password_for_active_user_should_create_a_token
|
||
| ... | ... | |
|
assert_response :success
|
||
|
assert_select 'input[type=hidden][name=token][value=?]', token.value
|
||
|
assert_select 'head>meta[name="robots"][content=?]', 'noindex,follow,noarchive'
|
||
|
end
|
||
|
def test_get_lost_password_with_invalid_token_should_redirect
|
||