-
Couldn't load subscription status.
- Fork 1.8k
Adding validation and toggle icon in forgot password section. #3882
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
Changes from 8 commits
9f3d3d5
990d524
baadb68
8fd0be1
47e0cff
ca6b855
21752bf
d324b8d
f54877f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,46 @@ | |
| {{#if token}} | ||
| <div class="ui left icon input"> | ||
| <i class="key icon"></i> | ||
| {{input type='password' name='password' placeholder=(t 'password') value=password}} | ||
| {{#if showNewPass}} | ||
| {{input type='text' name='password' placeholder=(t 'New Password') value=password}} | ||
| {{else}} | ||
| {{input type='password' name='password' placeholder=(t 'New Password') value=password}} | ||
| {{/if}} | ||
| <div class="ui small basic icon buttons"> | ||
| <button type="button" class="ui button" {{action 'showNewPassword'}}> | ||
| {{#if showNewPass}} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A lot of duplication in here. Please reduce it and make the code optimal There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then there will be no space in between both the textfields, thats why repeated the else part There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is implemented similar to that in sign up part There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Remove duplication as much as possible |
||
| <i class="hide basic icon"></i> | ||
| {{else}} | ||
| <i class="unhide basic icon"></i> | ||
| {{/if}} | ||
| </button> | ||
| </div> | ||
| </div> | ||
| {{else}} | ||
| <div class="ui left icon input"> | ||
| <i class="mail icon"></i> | ||
| {{input name='email' placeholder=(t 'Email ID') value=identification}} | ||
| </div> | ||
| {{/if}} | ||
| </div> | ||
| <div class="field"> | ||
| {{#if token}} | ||
| <div class="ui left icon input"> | ||
| <i class="key icon"></i> | ||
| {{#if showRepeatPass}} | ||
| {{input type='text' name='password_repeat' placeholder=(t 'Confirm Password') value=password_repeat}} | ||
| {{else}} | ||
| {{input type='password' name='password_repeat' placeholder=(t 'Confirm Password') value=password_repeat}} | ||
| {{/if}} | ||
| <div class="ui small basic icon buttons"> | ||
| <button type="button" class="ui button" {{action 'showRepeatPassword'}}> | ||
| {{#if showRepeatPass}} | ||
| <i class="hide basic icon"></i> | ||
| {{else}} | ||
| <i class="unhide basic icon"></i> | ||
| {{/if}} | ||
| </button> | ||
| </div> | ||
| </div> | ||
| {{else}} | ||
| <div class="ui left icon input"> | ||
|
|
@@ -41,4 +80,4 @@ | |
| </div> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| </div> | ||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a field for confirmation of password .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!