Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
14c4805c
Commit
14c4805c
authored
Jul 03, 2012
by
Giuseppe Terrasi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply changes in according to bug #1020685
parent
740237bd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
35 deletions
+35
-35
forum/skins/light/media/images/openid/launchpad.png
forum/skins/light/media/images/openid/launchpad.png
+0
-0
forum/skins/light/media/images/openid/ubuntusso.png
forum/skins/light/media/images/openid/ubuntusso.png
+0
-0
forum/skins/light/templates/auth/signin.html
forum/skins/light/templates/auth/signin.html
+2
-2
forum_modules/openidauth/authentication.py
forum_modules/openidauth/authentication.py
+33
-33
No files found.
forum/skins/light/media/images/openid/launchpad.png
0 → 100644
View file @
14c4805c
3.55 KB
forum/skins/light/media/images/openid/ubuntusso.png
0 → 100644
View file @
14c4805c
2.52 KB
forum/skins/light/templates/auth/signin.html
View file @
14c4805c
...
@@ -99,13 +99,13 @@
...
@@ -99,13 +99,13 @@
<input
type=
"hidden"
class=
"validate_email"
name=
"validate_email"
value=
"yes"
/>
<input
type=
"hidden"
class=
"validate_email"
name=
"validate_email"
value=
"yes"
/>
</form>
</form>
{% endfor %}
{% endfor %}
<h3
class=
"or_label"
>
{% trans 'Or...' %}
</h3>
<
!-- <
h3 class="or_label">{% trans 'Or...' %}</h3>
<form name="signin_form" id="dummy_form_unused" class="signin_form" method="POST" action="">
<form name="signin_form" id="dummy_form_unused" class="signin_form" method="POST" action="">
{% csrf_token %}
{% csrf_token %}
<fieldset>
<fieldset>
{% trans 'Click' %} <a href="{% url auth_request_tempsignin %}">{% trans 'here' %}</a> {% trans "if you're having trouble signing in." %}
{% trans 'Click' %} <a href="{% url auth_request_tempsignin %}">{% trans 'here' %}</a> {% trans "if you're having trouble signing in." %}
</fieldset>
</fieldset>
</form>
</form>
-->
<script
type=
"text/html"
id=
"simple_form_template"
>
<script
type=
"text/html"
id=
"simple_form_template"
>
<
fieldset
id
=
"
slot_form
"
>
<
fieldset
id
=
"
slot_form
"
>
<
p
id
=
"
provider_name_slot
"
>
{
%
trans
'
Enter your
'
%
}
%%
YOUR_WHAT
%%<
/p>
<
p
id
=
"
provider_name_slot
"
>
{
%
trans
'
Enter your
'
%
}
%%
YOUR_WHAT
%%<
/p>
...
...
forum_modules/openidauth/authentication.py
View file @
14c4805c
...
@@ -12,16 +12,38 @@ class GoogleAuthContext(ConsumerTemplateContext):
...
@@ -12,16 +12,38 @@ class GoogleAuthContext(ConsumerTemplateContext):
human_name
=
'Google'
human_name
=
'Google'
icon
=
'/media/images/openid/google.gif'
icon
=
'/media/images/openid/google.gif'
#
class YahooAuthConsumer(OpenIdAbstractAuthConsumer):
class
YahooAuthConsumer
(
OpenIdAbstractAuthConsumer
):
#
def get_user_url(self, request):
def
get_user_url
(
self
,
request
):
#
return 'http://yahoo.com/'
return
'http://yahoo.com/'
#class YahooAuthContext(ConsumerTemplateContext):
class
YahooAuthContext
(
ConsumerTemplateContext
):
# mode = 'BIGICON'
mode
=
'BIGICON'
# type = 'DIRECT'
type
=
'DIRECT'
# weight = 300
weight
=
300
# human_name = 'Yahoo'
human_name
=
'Yahoo'
# icon = '/media/images/openid/yahoo.gif'
icon
=
'/media/images/openid/yahoo.gif'
class
LaunchpadAuthConsumer
(
OpenIdAbstractAuthConsumer
):
def
get_user_url
(
self
,
request
):
return
'https://login.launchpad.net'
class
LaunchpadAuthConsumer
(
ConsumerTemplateContext
):
mode
=
'BIGICON'
type
=
'DIRECT'
weight
=
200
human_name
=
'Launchpad OpenID'
icon
=
'/media/images/openid/launchpad.png'
class
UbuntuSSOAuthConsumer
(
OpenIdAbstractAuthConsumer
):
def
get_user_url
(
self
,
request
):
return
'https://login.ubuntu.com'
class
UbuntuSSOAuthContext
(
ConsumerTemplateContext
):
mode
=
'BIGICON'
type
=
'DIRECT'
weight
=
200
human_name
=
'Ubuntu Single Sign On'
icon
=
'/media/images/openid/ubuntusso.png
#class AolAuthConsumer(OpenIdAbstractAuthConsumer):
#class AolAuthConsumer(OpenIdAbstractAuthConsumer):
# def get_user_url(self, request):
# def get_user_url(self, request):
...
@@ -95,7 +117,7 @@ class GoogleAuthContext(ConsumerTemplateContext):
...
@@ -95,7 +117,7 @@ class GoogleAuthContext(ConsumerTemplateContext):
# def get_user_url(self, request):
# def get_user_url(self, request):
# blog_name = request.POST['
input_field
']
# blog_name = request.POST['
input_field
']
return
"http://%s.wordpress.com/"
%
blog_name
#
return "http://%s.wordpress.com/" % blog_name
#class WordpressAuthContext(ConsumerTemplateContext):
#class WordpressAuthContext(ConsumerTemplateContext):
# mode = '
SMALLICON
'
# mode = '
SMALLICON
'
...
@@ -179,26 +201,4 @@ class GoogleAuthContext(ConsumerTemplateContext):
...
@@ -179,26 +201,4 @@ class GoogleAuthContext(ConsumerTemplateContext):
# weight = 300
# weight = 300
# human_name = '
OpenId
url
'
# human_name = '
OpenId
url
'
# stack_item_template = '
modules
/
openidauth
/
openidurl
.
html
'
# stack_item_template = '
modules
/
openidauth
/
openidurl
.
html
'
# icon = '/media/images/openid/openid-inputicon.gif'
# icon = '
/
media
/
images
/
openid
/
openid
-
inputicon
.
gif
''
class
LaunchpadAuthConsumer
(
OpenIdAbstractAuthConsumer
):
def
get_user_url
(
self
,
request
):
return
'https://login.launchpad.net'
class
LaunchpadAuthContext
(
ConsumerTemplateContext
):
mode
=
'BIGICON'
type
=
'DIRECT'
weight
=
200
human_name
=
'Launchpad OpenID'
icon
=
'/media/images/openid/launchpad.gif'
class
UbuntuSSOAuthConsumer
(
OpenIdAbstractAuthConsumer
):
def
get_user_url
(
self
,
request
):
return
'https://login.ubuntu.com'
class
UbuntuSSOAuthContext
(
ConsumerTemplateContext
):
mode
=
'BIGICON'
type
=
'DIRECT'
weight
=
200
human_name
=
'Ubuntu Single Sign On'
icon
=
'/media/images/openid/ubuntusso.gif'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment