Forgot your password?
-Enter your email below and we will send
you a reset link
diff --git a/car_inventory/__pycache__/settings.cpython-311.pyc b/car_inventory/__pycache__/settings.cpython-311.pyc index e1c0b3e0..7a4cc307 100644 Binary files a/car_inventory/__pycache__/settings.cpython-311.pyc and b/car_inventory/__pycache__/settings.cpython-311.pyc differ diff --git a/car_inventory/settings.py b/car_inventory/settings.py index 147db327..cb585d69 100644 --- a/car_inventory/settings.py +++ b/car_inventory/settings.py @@ -134,13 +134,17 @@ AUTH_PASSWORD_VALIDATORS = [ ] # Authentications -LOGIN_REDIRECT_URL = '/' -ACCOUNT_LOGOUT_REDIRECT_URL = '/' -ACCOUNT_EMAIL_VERIFICATION = "none" + + ACCOUNT_AUTHENTICATION_METHOD = "email" ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_UNIQUE_EMAIL = True ACCOUNT_USERNAME_REQUIRED = False +LOGIN_REDIRECT_URL = '/' +LOGOUT_REDIRECT_URL = '/' +ACCOUNT_SIGNUP_REDIRECT_URL = '/' +ACCOUNT_USER_MODEL_USERNAME_FIELD = None +ACCOUNT_EMAIL_VERIFICATION = "mandatory" AUTHENTICATION_BACKENDS = [ "django.contrib.auth.backends.ModelBackend", diff --git a/inventory/__pycache__/models.cpython-311.pyc b/inventory/__pycache__/models.cpython-311.pyc index 5283ab05..9de9d791 100644 Binary files a/inventory/__pycache__/models.cpython-311.pyc and b/inventory/__pycache__/models.cpython-311.pyc differ diff --git a/inventory/__pycache__/urls.cpython-311.pyc b/inventory/__pycache__/urls.cpython-311.pyc index 59fba1de..a97bf298 100644 Binary files a/inventory/__pycache__/urls.cpython-311.pyc and b/inventory/__pycache__/urls.cpython-311.pyc differ diff --git a/inventory/__pycache__/views.cpython-311.pyc b/inventory/__pycache__/views.cpython-311.pyc index db7686c7..615db312 100644 Binary files a/inventory/__pycache__/views.cpython-311.pyc and b/inventory/__pycache__/views.cpython-311.pyc differ diff --git a/inventory/migrations/0018_additionalservices_taxable.py b/inventory/migrations/0018_additionalservices_taxable.py new file mode 100644 index 00000000..2f9b8f65 --- /dev/null +++ b/inventory/migrations/0018_additionalservices_taxable.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2024-12-25 17:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('inventory', '0017_dealer_email'), + ] + + operations = [ + migrations.AddField( + model_name='additionalservices', + name='taxable', + field=models.BooleanField(default=True, verbose_name='Taxable'), + ), + ] diff --git a/inventory/urls.py b/inventory/urls.py index fdc8ca11..28c933af 100644 --- a/inventory/urls.py +++ b/inventory/urls.py @@ -15,15 +15,16 @@ urlpatterns = [ path('login/', allauth_views.LoginView.as_view(template_name='account/login.html'), name='account_login'), path('logout/', allauth_views.LogoutView.as_view(template_name='account/logout.html'), name='account_logout'), path('signup/', allauth_views.SignupView.as_view(template_name='account/signup.html'), name='account_signup'), - path('change-password/', + path('password/change/', allauth_views.PasswordChangeView.as_view(template_name='account/password_change.html'), - name='change_password'), - path('reset-password/', + name='account_change_password'), + path('password/reset/', allauth_views.PasswordResetView.as_view(template_name='account/password_reset.html'), - name='reset_password'), - path('password-reset-done/', + name='account_reset_password'), + path('password/reset/done/', allauth_views.PasswordResetDoneView.as_view(template_name='account/password_reset_done.html'), - name='password_reset_done'), + name='account_password_reset_done'), + path('login/code/', allauth_views.RequestLoginCodeView.as_view(template_name='account/request_login_code.html')), # Dealer URLs path('dealers/', views.DealerListView.as_view(), name='dealer_list'), diff --git a/inventory/views.py b/inventory/views.py index 614bc7e5..7ff0a591 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -98,7 +98,7 @@ def switch_language(request): class HomeView(LoginRequiredMixin, TemplateView): - template_name = "crm.html" + template_name = "dashboards/accounting.html" def dispatch(self, request, *args, **kwargs): if ( diff --git a/templates/account/confirm_email_verification_code.html b/templates/account/confirm_email_verification_code.html new file mode 100644 index 00000000..d99adc58 --- /dev/null +++ b/templates/account/confirm_email_verification_code.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}Confirm Email Verification Code{% endblock %} + +{% block content %} +
Please enter the verification code sent to your email.
+ +Please enter the login code sent to your email or phone.
+ +If you didn’t receive a code, click here to resend it.
+Enter your email below and we will send
you a reset link
Explore different styles according to your preferences
-