Commit f4619e53 authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

Fix #1020685:

- add launchpad and ubuntu icons
- disable twitter and facebook auth
- hide auth_request_tempsignin
- add yahoo, launchpad and ubuntu SSO signin method
parents 14f22010 86cf6a30
...@@ -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>
......
...@@ -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 LaunchpadAuthContext(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):
...@@ -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'
...@@ -60,4 +60,4 @@ DJANGO_VERSION = 1.3 ...@@ -60,4 +60,4 @@ DJANGO_VERSION = 1.3
OSQA_DEFAULT_SKIN = 'default' OSQA_DEFAULT_SKIN = 'default'
# disable mysqlfulltxt and local authentication (registrations users) # disable mysqlfulltxt and local authentication (registrations users)
DISABLED_MODULES = ['books', 'recaptcha', 'project_badges', 'mysqlfulltxt', 'localauth'] DISABLED_MODULES = ['books', 'recaptcha', 'project_badges', 'mysqlfulltxt', 'localauth', 'oauthauth', 'facebookauth']
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment