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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
b3dc5b77
Commit
b3dc5b77
authored
14 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
made all login operations function over SSL
parent
a63bbc45
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
auth/views.py
+2
-2
2 additions, 2 deletions
auth/views.py
server_ui/templates/base.html
+1
-1
1 addition, 1 deletion
server_ui/templates/base.html
with
3 additions
and
3 deletions
auth/views.py
+
2
−
2
View file @
b3dc5b77
...
@@ -150,7 +150,7 @@ def start(request, system_name):
...
@@ -150,7 +150,7 @@ def start(request, system_name):
system
=
AUTH_SYSTEMS
[
system_name
]
system
=
AUTH_SYSTEMS
[
system_name
]
# where to send the user to?
# where to send the user to?
redirect_url
=
"
%s%s
"
%
(
settings
.
URL_HOST
,
reverse
(
after
))
redirect_url
=
"
%s%s
"
%
(
settings
.
SECURE_
URL_HOST
,
reverse
(
after
))
auth_url
=
system
.
get_auth_url
(
request
,
redirect_url
=
redirect_url
)
auth_url
=
system
.
get_auth_url
(
request
,
redirect_url
=
redirect_url
)
if
auth_url
:
if
auth_url
:
...
@@ -194,5 +194,5 @@ def after_intervention(request):
...
@@ -194,5 +194,5 @@ def after_intervention(request):
if
request
.
session
.
has_key
(
'
auth_return_url
'
):
if
request
.
session
.
has_key
(
'
auth_return_url
'
):
return_url
=
request
.
session
[
'
auth_return_url
'
]
return_url
=
request
.
session
[
'
auth_return_url
'
]
del
request
.
session
[
'
auth_return_url
'
]
del
request
.
session
[
'
auth_return_url
'
]
return
HttpResponseRedirect
(
return_url
)
return
HttpResponseRedirect
(
"
%s%s
"
%
(
settings
.
URL_HOST
,
return_url
)
)
This diff is collapsed.
Click to expand it.
server_ui/templates/base.html
+
1
−
1
View file @
b3dc5b77
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
logged in as {{user.display_html_small|safe}}
logged in as {{user.display_html_small|safe}}
[
<a
href=
"{% url auth.views.logout %}?return_url={{CURRENT_URL}}"
>
logout
</a>
]
<br
/>
[
<a
href=
"{% url auth.views.logout %}?return_url={{CURRENT_URL}}"
>
logout
</a>
]
<br
/>
{% else %}
{% else %}
not logged in. [
<a
href=
"{% url auth.views.index %}?return_url={{CURRENT_URL}}"
>
log in
</a>
]
<br
/>
not logged in. [
<a
href=
"{
{settings.SECURE_URL_HOST}}{
% url auth.views.index %}?return_url={{CURRENT_URL}}"
>
log in
</a>
]
<br
/>
{% endif %}
{% endif %}
<a
href=
"http://heliosvoting.org"
>
About Helios
</a>
<a
href=
"http://heliosvoting.org"
>
About Helios
</a>
{% for footer_link in settings.FOOTER_LINKS %}
{% for footer_link in settings.FOOTER_LINKS %}
...
...
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