SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
d141b934
Commit
d141b934
authored
9 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Correct bug in change_password
parent
dd192ab0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scipost/templates/scipost/change_password.html
+2
-3
2 additions, 3 deletions
scipost/templates/scipost/change_password.html
scipost/views.py
+4
-3
4 additions, 3 deletions
scipost/views.py
submissions/models.py
+2
-2
2 additions, 2 deletions
submissions/models.py
with
8 additions
and
8 deletions
scipost/templates/scipost/change_password.html
+
2
−
3
View file @
d141b934
...
...
@@ -4,13 +4,12 @@
{% block bodysup %}
{% if ack
nowledgement
%}
{% if ack %}
<section>
<h1>
Your SciPost password has been successfully changed
</h1>
</section>
{% else %}
<section>
<h1>
Change your SciPost password
</h1>
<form
action=
"{% url 'scipost:change_password' %}"
method=
"post"
>
...
...
@@ -26,6 +25,6 @@
<p>
{{ errormessage }}
</p>
{% endif %}
</section>
{% endif
acknowledgement
%}
{% endif %}
{% endblock bodysup %}
This diff is collapsed.
Click to expand it.
scipost/views.py
+
4
−
3
View file @
d141b934
...
...
@@ -304,11 +304,12 @@ def change_password(request):
return
render
(
request
,
'
scipost/change_password.html
'
,
{
'
form
'
:
form
,
'
errormessage
'
:
'
Your new password entries must match
'
})
request
.
user
.
set_password
(
form
.
cleaned_data
[
'
password_new
'
])
request
.
user
.
save
()
context
=
{
'
acknowledgement
'
:
True
,
'
form
'
:
PasswordChangeForm
()}
return
render
(
request
,
'
scipost/change_password.html
'
,
context
)
ack
=
True
context
=
{
'
ack
'
:
True
,
'
form
'
:
form
}
else
:
form
=
PasswordChangeForm
()
return
render
(
request
,
'
scipost/change_password.html
'
,
{
'
form
'
:
form
})
context
=
{
'
ack
'
:
False
,
'
form
'
:
form
}
return
render
(
request
,
'
scipost/change_password.html
'
,
context
)
def
reset_password_confirm
(
request
,
uidb64
=
None
,
token
=
None
):
...
...
This diff is collapsed.
Click to expand it.
submissions/models.py
+
2
−
2
View file @
d141b934
...
...
@@ -126,8 +126,8 @@ class Report(models.Model):
weaknesses
=
models
.
TextField
()
report
=
models
.
TextField
()
requested_changes
=
models
.
TextField
(
verbose_name
=
"
requested changes
"
)
formatting
=
models
.
SmallIntegerField
(
choices
=
QUALITY_SPEC
,
blank
=
True
,
default
=
0
,
verbose_name
=
"
Quality of paper formatting
"
)
grammar
=
models
.
SmallIntegerField
(
choices
=
QUALITY_SPEC
,
blank
=
True
,
default
=
0
,
verbose_name
=
"
Quality of English grammar
"
)
formatting
=
models
.
SmallIntegerField
(
choices
=
QUALITY_SPEC
,
blank
=
True
,
verbose_name
=
"
Quality of paper formatting
"
)
grammar
=
models
.
SmallIntegerField
(
choices
=
QUALITY_SPEC
,
blank
=
True
,
verbose_name
=
"
Quality of English grammar
"
)
recommendation
=
models
.
SmallIntegerField
(
choices
=
REPORT_REC
)
date_invited
=
models
.
DateTimeField
(
'
date invited
'
,
blank
=
True
,
null
=
True
)
invited_by
=
models
.
ForeignKey
(
Contributor
,
blank
=
True
,
null
=
True
,
related_name
=
'
invited_by
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment