first commit
This commit is contained in:
		
							
								
								
									
										15
									
								
								templates/socialaccount/snippets/login.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								templates/socialaccount/snippets/login.html
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| {% load i18n %} | ||||
| {% load allauth %} | ||||
| {% load socialaccount %} | ||||
| {% get_providers as socialaccount_providers %} | ||||
| {% if socialaccount_providers %} | ||||
|     {% if not SOCIALACCOUNT_ONLY %} | ||||
|         {% element hr %} | ||||
|         {% endelement %} | ||||
|         {% element h2 %} | ||||
|             {% translate "Or use a third-party" %} | ||||
|         {% endelement %} | ||||
|     {% endif %} | ||||
|     {% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||||
|     {% include "socialaccount/snippets/login_extra.html" %} | ||||
| {% endif %} | ||||
							
								
								
									
										2
									
								
								templates/socialaccount/snippets/login_extra.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								templates/socialaccount/snippets/login_extra.html
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| {% load socialaccount %} | ||||
| {% providers_media_js %} | ||||
							
								
								
									
										18
									
								
								templates/socialaccount/snippets/provider_list.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								templates/socialaccount/snippets/provider_list.html
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| {% load allauth socialaccount %} | ||||
| {% get_providers as socialaccount_providers %} | ||||
| {% if socialaccount_providers %} | ||||
|     {% element provider_list %} | ||||
|         {% for provider in socialaccount_providers %} | ||||
|             {% if provider.id == "openid" %} | ||||
|                 {% for brand in provider.get_brands %} | ||||
|                     {% provider_login_url provider openid=brand.openid_url process=process as href %} | ||||
|                     {% element provider name=brand.name provider_id=provider.id href=href %} | ||||
|                     {% endelement %} | ||||
|                 {% endfor %} | ||||
|             {% endif %} | ||||
|             {% provider_login_url provider process=process scope=scope auth_params=auth_params as href %} | ||||
|             {% element provider name=provider.name provider_id=provider.id href=href %} | ||||
|             {% endelement %} | ||||
|         {% endfor %} | ||||
|     {% endelement %} | ||||
| {% endif %} | ||||
		Reference in New Issue
	
	Block a user
	 root
					root