Show error message on invalid reset password attempt

This commit is contained in:
James Kiesel 2014-10-11 01:40:59 +13:00
parent d44300c7a2
commit e2e502ea68
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,8 @@
%h1{id: "huge-text"}= AppConfig.settings.pod_name
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => {:class => "form-horizontal block-form"}, :autocomplete => 'off') do |f|
%legend
%i= t('devise.passwords.new.no_account') unless devise_error_messages!.empty?
%fieldset
.control-group
%label{class: "control-label", for: "user_email", style: "width: 40%; text-align: center; padding: 10px 0; overflow: hidden"}

View file

@ -22,3 +22,9 @@ Feature: Change password
When I fill out reset password form with "supersecret" and "supersecret"
And I submit reset password form
Then I should be on the stream page
Scenario: Attempt to reset password with invalid email
Given I am on forgot password page
When I fill out forgot password form with "notanemail"
And I submit forgot password form
Then I should see "No account with this email exists"