-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added password show/hide toggle for password fields #18
Conversation
Thanks, I will review this ASAP ! |
hi @Sreejit7 , I read the PR. Here are my recommendations:
My suggestion would be to create a components for password fields, and include <script> tags directly in this new component (more on that below)
Password fields are the same on every page, except login page where there is no confirmation. Here is my suggestion:
@!component('components/fieldsPassword', {
confirmation: false,
}) And then, in the edge component: @if(confirmation)
// password_confirmation field
@endif Finally I suggest using the component created to displayed password fields on every form. Let me know what you think about all this and if you are interested to re-work some of this points, and which ones. If you don't have time, i will merge as it is, as long as 1) is fixed, and the components refacto will be done in another PR ! |
Hi @yann-yinn , thanks for the suggestions. I appreciate your thoughts and will work on fixing 1 ASAP. |
Yep let's focus on just fixing 1) (JS errors on pages without password fields in this PR): if show / hide password is working fine on every form that's already great. I opened another issue about refactoring password field as a component, we can do this later. #19 |
Hello, I need to work on passwords this morning (validation rules / password strength), i'm merging this and will do the small fix needed ! |
@yann-yinn I've also added a partial for password but since the field has many different fields at different I'm not sure how reusable it will be.