Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
9a39b4e5
Commit
9a39b4e5
authored
3 years ago
by
Ben Adida
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
don't error out if session has been cleared on cast done page.
parent
d62ef202
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
helios/templates/cast_done.html
+2
-0
2 additions, 0 deletions
helios/templates/cast_done.html
helios/views.py
+1
-9
1 addition, 9 deletions
helios/views.py
with
3 additions
and
9 deletions
helios/templates/cast_done.html
+
2
−
0
View file @
9a39b4e5
...
@@ -8,10 +8,12 @@
...
@@ -8,10 +8,12 @@
Congratulations, your vote has been
<b><u>
successfully cast
</u></b>
!
Congratulations, your vote has been
<b><u>
successfully cast
</u></b>
!
</p>
</p>
{% if vote_hash %}
<p>
<p>
Your smart ballot tracker is:
<br
/><br
/>
Your smart ballot tracker is:
<br
/><br
/>
<tt
style=
"font-size:1.8em; font-weight: bold; padding-left: 20px;"
>
{{vote_hash}}
</tt>
<tt
style=
"font-size:1.8em; font-weight: bold; padding-left: 20px;"
>
{{vote_hash}}
</tt>
</p>
</p>
{% endif %}
{% if logout %}
{% if logout %}
<p><b>
For your safety, we have logged you out.
</b></p>
<p><b>
For your safety, we have logged you out.
</b></p>
...
...
This diff is collapsed.
Click to expand it.
helios/views.py
+
1
−
9
View file @
9a39b4e5
...
@@ -776,17 +776,9 @@ def one_election_cast_done(request, election):
...
@@ -776,17 +776,9 @@ def one_election_cast_done(request, election):
save_in_session_across_logouts
(
request
,
'
last_vote_hash
'
,
vote_hash
)
save_in_session_across_logouts
(
request
,
'
last_vote_hash
'
,
vote_hash
)
save_in_session_across_logouts
(
request
,
'
last_vote_cv_url
'
,
cv_url
)
save_in_session_across_logouts
(
request
,
'
last_vote_cv_url
'
,
cv_url
)
else
:
else
:
vote_hash
=
request
.
session
[
'
last_vote_hash
'
]
vote_hash
=
request
.
session
.
get
(
'
last_vote_hash
'
,
None
)
cv_url
=
request
.
session
[
'
last_vote_cv_url
'
]
logout
=
False
logout
=
False
# local logout ensures that there's no more
# user locally
# WHY DO WE COMMENT THIS OUT? because we want to force a full logout via the iframe, including
# from remote systems, just in case, i.e. CAS
# if logout:
# auth_views.do_local_logout(request)
# remote logout is happening asynchronously in an iframe to be modular given the logout mechanism
# remote logout is happening asynchronously in an iframe to be modular given the logout mechanism
# include_user is set to False if logout is happening
# include_user is set to False if logout is happening
return
render_template
(
request
,
'
cast_done
'
,
{
'
election
'
:
election
,
return
render_template
(
request
,
'
cast_done
'
,
{
'
election
'
:
election
,
...
...
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