Support the ongoing development of Laravel.io →
posted 10 years ago
Blade Forms
Last updated 2 years ago.
0

claratan that is a very bad idea and should never be done !

because if you were to repopulate the field then the user or anyone else could look at the source code of your page and read the plain text password

passwords should be encrypted using a one way encryption

hope this helps

Last updated 2 years ago.
0

To pre-populate a password field you would need to do Form::input('password', 'field_name', Input::old('user_password'), ['class' => 'form-control']). Bear in mind the Form::password() function doesn't allow you to do this by design because the password would be in plain-text in the HTML source of your page.

Showing a users password after its been hashed isn't possible. Hashing is a one-way thing, it cannot be reversed.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

claratan claratan Joined 30 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.