-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Management fo role and backend of user logged by socialaccount
- Loading branch information
wlorenzetti
committed
Dec 18, 2024
1 parent
1850467
commit a2148c2
Showing
4 changed files
with
83 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
g3w-admin/usersmanage/templates/socialaccount/provider_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% load allauth socialaccount %} | ||
{% load i18n %} | ||
{% get_providers as socialaccount_providers %} | ||
{% if socialaccount_providers %} | ||
<div class="col-xs-12" style="text-align: center;"> | ||
<p>- {% trans 'OR' %} -</p> | ||
</div> | ||
{% 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 %} | ||
<div class="col-xs-12"> | ||
<a class="btn btn-default btn-block btn-flat" href="{{ href }}">{{ provider.name }}</a> | ||
</div> | ||
{% endfor %} | ||
<div class="col-xs-12" style="margin-bottom: 20px;"></div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters