Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behaviour #22

Open
anandchavan opened this issue Jan 4, 2015 · 1 comment
Open

Incorrect behaviour #22

anandchavan opened this issue Jan 4, 2015 · 1 comment

Comments

@anandchavan
Copy link

Steps -

Fields on my page {email, username, password, password_confirmation} & submit button

  1. I have added validation rules on Registration page
  2. Submitting form all correct entries but password confirmation
  3. Got appropriate error message
  4. from same page, removed all values
  5. submit page

Expected - Required fields validation should be displayed and all input fields should be empty as submitted.

Actual - Got correct messages, however username & password field is showing old values.

I even tried refreshing page, now error messages are not displayed but username&password is as is.

Please confirm the behavior. Thanks!

Regards,
Anand Chavan

@DevJMD
Copy link

DevJMD commented Jan 17, 2015

You might need to remove, presuming you're using the withInput() declaration:

From:

return Redirect::back()->withInput()->withErrors($e->getErrors());

To:

return Redirect::back()->withErrors($e->getErrors());

withInput() will carry the previous field entires post-submit and return them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants