Skip to content

Commit

Permalink
delete more account related stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Sep 12, 2024
1 parent 1479b19 commit b162644
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 269 deletions.
35 changes: 0 additions & 35 deletions euth/accounts/forms.py

This file was deleted.

5 changes: 0 additions & 5 deletions euth/accounts/templates/euth_accounts/base_account.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ <h2 class="dashboard-left-nav-header">{% trans 'Account Settings' %}</h2>
<i class="fa fa-envelope" aria-hidden="true"></i>
<span>{% trans 'E-mail Addresses' %}</span>
</a>
<a href="{% url 'socialaccount_connections' %}"
class="list-group-item list-group-item-heading {% if url_name == 'socialaccount_connections' %}active{% endif %}">
<i class="fa fa-users" aria-hidden="true"></i>
<span>{% trans 'Account Connections' %}</span>
</a>
{% endwith %}
</div>
</div>
Expand Down
59 changes: 0 additions & 59 deletions euth/accounts/templates/euth_accounts/profile_form.html

This file was deleted.

13 changes: 0 additions & 13 deletions euth/accounts/urls.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
from django.urls import include
from django.urls import path

from . import views

urlpatterns = [
path(
'',
views.dashboard_default,
name='account'),
path(
'profile/',
views.AccountProfileView.as_view(),
name='account-profile'),
path(
'social/',
include('allauth.socialaccount.urls')),
path(
'',
include('allauth.account.urls')),
Expand Down
30 changes: 0 additions & 30 deletions euth/accounts/views.py

This file was deleted.

2 changes: 1 addition & 1 deletion euth_wagtail/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
'rules.apps.AutodiscoverRulesConfig',
'allauth',
'allauth.account',
'allauth.socialaccount',
'micawber.contrib.mcdjango',

'euth.users',
'euth.accounts',
Expand Down
12 changes: 0 additions & 12 deletions euth_wagtail/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

{% load account %}
{% load i18n %}
{% load socialaccount %}
{% load widget_tweaks %}

{% block title %}{% trans 'Login' %}{% endblock %}
Expand Down Expand Up @@ -61,17 +60,6 @@ <h1>{% trans "Login" %}</h1>

<button type="submit" value="Login" class="btn btn-ghost btn-wide">{% trans "login" %}</button>
</form>
<div class="socialaccounts">
{% get_providers as socialaccount_providers %}
{% if socialaccount_providers %}
<p class="h6 text-uppercase sans-serif">{% trans "Login with social account" %}</h6>
<div class="socialaccount_ballot">
<ul class="socialaccount_providers">
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
</ul>
</div>
{% endif %}
</div>
</div>
</div>
{% else %}
Expand Down
15 changes: 1 addition & 14 deletions euth_wagtail/templates/account/signup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends 'base.html' %}

{% load static widget_tweaks socialaccount i18n %}
{% load static widget_tweaks i18n %}

{% block title %}{% trans 'Register an account' %}{% endblock %}

Expand Down Expand Up @@ -99,19 +99,6 @@ <h1>{% trans "Register" %}</h1>
<button type="submit" value="Register" class="btn btn-ghost btn-wide">{% trans "register" %}</button>
</form>

{% block socialaccounts %}
<div class="socialaccounts">
{% get_providers as socialaccount_providers %}
{% if socialaccount_providers %}
<p class="h6 text-uppercase sans-serif">{% trans "Login with social account" %}</h6>
<div class="socialaccount_ballot">
<ul class="socialaccount_providers">
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
</ul>
</div>
{% endif %}
</div>
{% endblock %}
</div>
</div>
<div class="account__container--right">
Expand Down
45 changes: 0 additions & 45 deletions euth_wagtail/templates/socialaccount/connections.html

This file was deleted.

15 changes: 0 additions & 15 deletions euth_wagtail/templates/socialaccount/signup.html

This file was deleted.

20 changes: 0 additions & 20 deletions euth_wagtail/templates/socialaccount/snippets/provider_list.html

This file was deleted.

6 changes: 0 additions & 6 deletions euth_wagtail/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from euth.accounts import urls as accounts_urls
from euth.contrib.sitemaps.static_sitemap import StaticSitemap

from . import urls_accounts

sitemaps = {
'wagtail': WagtailSitemap,
'static': StaticSitemap
Expand All @@ -42,10 +40,6 @@
path('', include(wagtail_urls)),
)

urlpatterns += [
path('accounts/', include(urls_accounts)),
]

if settings.DEBUG:
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
Expand Down
14 changes: 0 additions & 14 deletions euth_wagtail/urls_accounts.py

This file was deleted.

0 comments on commit b162644

Please sign in to comment.