-
Notifications
You must be signed in to change notification settings - Fork 44
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
212 password change #254
Merged
Merged
212 password change #254
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
63a551b
Added change password section
Lobosque fa8cb5d
Better javascript to handle tabs
Lobosque 83f273c
Added tests for change_password
Lobosque 49a066d
Change password: Added successful change test
Lobosque 04d138c
Fixed test style
Lobosque a57a4eb
Fixed django password strength validation (call only when needed)
Lobosque d2cca0d
old_password -> current_password
Lobosque b6ad969
Added pt_PT translations
Lobosque 7794560
Removed pdb :)
Lobosque 88df73f
Hide the password change section for github accoutns
Lobosque 28869e0
Python3 style super()
Lobosque File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ | |
<div class="col-xs-12 nav-st no-padding text-left"> | ||
<li id="tab1" class="sett__nav__item text-darkest active">{% trans "Profile" %}</li> | ||
<li id="tab2" class="sett__nav__item text-darkest">{% trans "Keys" %}</li> | ||
<li id="tab3" class="sett__nav__item text-darkest">{% trans "Experimental Features" %}</li> | ||
{% if not form.instance.has_github_login %} | ||
<li id="tab3" class="sett__nav__item text-darkest">{% trans "Password" %}</li> | ||
{%endif %} | ||
<li id="tab4" class="sett__nav__item text-darkest">{% trans "Experimental Features" %}</li> | ||
</div> | ||
</ul> | ||
|
||
|
@@ -65,6 +68,19 @@ | |
</div> | ||
</li> | ||
<li class="section" id="section3"> | ||
<div class="col-xxs-12 col-xs-12 col-md-12 start-xs"> | ||
<div class="form__block"> | ||
{{ form.current_password.errors }} {{ form.current_password.label_tag }} {{ form.current_password }} | ||
</div> | ||
<div class="form__block"> | ||
{{ form.new_password2.errors }} {{ form.new_password1.label_tag }} {{ form.new_password1 }} | ||
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. I think this is a typo, should be |
||
</div> | ||
<div class="form__block"> | ||
{{ form.new_password2.errors }} {{ form.new_password2.label_tag }} {{ form.new_password2 }} | ||
</div> | ||
</div> | ||
</li> | ||
<li class="section" id="section4"> | ||
<div class="col-xs-12 start-xs"> | ||
<span class="text-blue smalltext"> | ||
<p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For some reason this event is not being added to
#tab4
(at least on Firefox)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.
I tested here on Firefox and it triggers the event just fine.
Maybe a version issue? Can you try again?
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.
Just tested again, with different browsers and it is working fine. Not sure what was the problem the other time.