diff --git a/codeara/__pycache__/__init__.cpython-38.pyc b/codeara/__pycache__/__init__.cpython-38.pyc index a0b1dde..680306b 100644 Binary files a/codeara/__pycache__/__init__.cpython-38.pyc and b/codeara/__pycache__/__init__.cpython-38.pyc differ diff --git a/codeara/__pycache__/settings.cpython-38.pyc b/codeara/__pycache__/settings.cpython-38.pyc index 396fc72..23c2638 100644 Binary files a/codeara/__pycache__/settings.cpython-38.pyc and b/codeara/__pycache__/settings.cpython-38.pyc differ diff --git a/codeara/__pycache__/urls.cpython-38.pyc b/codeara/__pycache__/urls.cpython-38.pyc index dcfbfc3..3b2505e 100644 Binary files a/codeara/__pycache__/urls.cpython-38.pyc and b/codeara/__pycache__/urls.cpython-38.pyc differ diff --git a/codeara/__pycache__/wsgi.cpython-38.pyc b/codeara/__pycache__/wsgi.cpython-38.pyc index 147a142..2a25023 100644 Binary files a/codeara/__pycache__/wsgi.cpython-38.pyc and b/codeara/__pycache__/wsgi.cpython-38.pyc differ diff --git a/codeara/settings.py b/codeara/settings.py index 17be51f..5d4a72a 100644 --- a/codeara/settings.py +++ b/codeara/settings.py @@ -58,6 +58,8 @@ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'social_django.context_processors.backends', + 'social_django.context_processors.login_redirect', ], }, }, @@ -108,8 +110,11 @@ USE_TZ = True -ACCOUNT_EMAIL_REQUIRED = False -ACCOUNT_USERNAME_REQUIRED = False +Client_id = config('Client_id') +Client_secret = config('Client_secret') +ACCOUNT_EMAIL_REQUIRED = True +ACCOUNT_USERNAME_REQUIRED=False +ACCOUNT_AUTHENTICATION_METHOD="email" # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ @@ -121,9 +126,9 @@ 'django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend', ) - -Client_id = config('Client_id') -Client_secret = config('Client_secret') +EMAIL_BACKEND='django.core.mail.backends.console.EmailBackend' +ACCOUNT_EMAIL_VERIFICATION='none' +EMAIL_FILE_PATH = os.path.join(BASE_DIR,'sent_emails') ERROR_MESSAGE = "Something went wrong please try again" CORECT_SUBMISSION_MESSAGE = "Correct!!" diff --git a/compiler/__pycache__/__init__.cpython-38.pyc b/compiler/__pycache__/__init__.cpython-38.pyc index 9d12ef7..6561e59 100644 Binary files a/compiler/__pycache__/__init__.cpython-38.pyc and b/compiler/__pycache__/__init__.cpython-38.pyc differ diff --git a/compiler/__pycache__/admin.cpython-38.pyc b/compiler/__pycache__/admin.cpython-38.pyc index 6229772..1e417a1 100644 Binary files a/compiler/__pycache__/admin.cpython-38.pyc and b/compiler/__pycache__/admin.cpython-38.pyc differ diff --git a/compiler/__pycache__/models.cpython-38.pyc b/compiler/__pycache__/models.cpython-38.pyc index 1821c46..35e9ef7 100644 Binary files a/compiler/__pycache__/models.cpython-38.pyc and b/compiler/__pycache__/models.cpython-38.pyc differ diff --git a/compiler/__pycache__/urls.cpython-38.pyc b/compiler/__pycache__/urls.cpython-38.pyc index 8175b14..1b252f4 100644 Binary files a/compiler/__pycache__/urls.cpython-38.pyc and b/compiler/__pycache__/urls.cpython-38.pyc differ diff --git a/compiler/__pycache__/views.cpython-38.pyc b/compiler/__pycache__/views.cpython-38.pyc index dc295b7..22189ce 100644 Binary files a/compiler/__pycache__/views.cpython-38.pyc and b/compiler/__pycache__/views.cpython-38.pyc differ diff --git a/compiler/migrations/__pycache__/0001_initial.cpython-38.pyc b/compiler/migrations/__pycache__/0001_initial.cpython-38.pyc index 1406713..2d20f0e 100644 Binary files a/compiler/migrations/__pycache__/0001_initial.cpython-38.pyc and b/compiler/migrations/__pycache__/0001_initial.cpython-38.pyc differ diff --git a/compiler/migrations/__pycache__/__init__.cpython-38.pyc b/compiler/migrations/__pycache__/__init__.cpython-38.pyc index 6294822..cc506e7 100644 Binary files a/compiler/migrations/__pycache__/__init__.cpython-38.pyc and b/compiler/migrations/__pycache__/__init__.cpython-38.pyc differ diff --git a/user/__pycache__/__init__.cpython-38.pyc b/user/__pycache__/__init__.cpython-38.pyc index a9ce016..c38e692 100644 Binary files a/user/__pycache__/__init__.cpython-38.pyc and b/user/__pycache__/__init__.cpython-38.pyc differ diff --git a/user/__pycache__/admin.cpython-38.pyc b/user/__pycache__/admin.cpython-38.pyc index 6d377c3..85238fe 100644 Binary files a/user/__pycache__/admin.cpython-38.pyc and b/user/__pycache__/admin.cpython-38.pyc differ diff --git a/user/__pycache__/models.cpython-38.pyc b/user/__pycache__/models.cpython-38.pyc index 73e6264..8367cf9 100644 Binary files a/user/__pycache__/models.cpython-38.pyc and b/user/__pycache__/models.cpython-38.pyc differ diff --git a/user/__pycache__/urls.cpython-38.pyc b/user/__pycache__/urls.cpython-38.pyc index 0394586..cd40694 100644 Binary files a/user/__pycache__/urls.cpython-38.pyc and b/user/__pycache__/urls.cpython-38.pyc differ diff --git a/user/__pycache__/views.cpython-38.pyc b/user/__pycache__/views.cpython-38.pyc index 20d8d6f..9f980bc 100644 Binary files a/user/__pycache__/views.cpython-38.pyc and b/user/__pycache__/views.cpython-38.pyc differ diff --git a/user/migrations/__pycache__/0001_initial.cpython-38.pyc b/user/migrations/__pycache__/0001_initial.cpython-38.pyc index 5e35ded..5099ae8 100644 Binary files a/user/migrations/__pycache__/0001_initial.cpython-38.pyc and b/user/migrations/__pycache__/0001_initial.cpython-38.pyc differ diff --git a/user/migrations/__pycache__/0002_auto_20200118_2214.cpython-38.pyc b/user/migrations/__pycache__/0002_auto_20200118_2214.cpython-38.pyc index aaffa3d..c9d939c 100644 Binary files a/user/migrations/__pycache__/0002_auto_20200118_2214.cpython-38.pyc and b/user/migrations/__pycache__/0002_auto_20200118_2214.cpython-38.pyc differ diff --git a/user/migrations/__pycache__/__init__.cpython-38.pyc b/user/migrations/__pycache__/__init__.cpython-38.pyc index cfff6d9..9fb51af 100644 Binary files a/user/migrations/__pycache__/__init__.cpython-38.pyc and b/user/migrations/__pycache__/__init__.cpython-38.pyc differ diff --git a/user/templates/account/login.html b/user/templates/account/login.html index 7be9392..bdca91b 100644 --- a/user/templates/account/login.html +++ b/user/templates/account/login.html @@ -6,26 +6,52 @@ {% block content %}
{% endblock %} diff --git a/user/templates/account/password_change.html b/user/templates/account/password_change.html new file mode 100644 index 0000000..e8b0af7 --- /dev/null +++ b/user/templates/account/password_change.html @@ -0,0 +1,29 @@ +{% extends 'account/base.html' %} + +{% load i18n %} +{% load account socialaccount %} +{% block head_title %}{% trans "Password Management" %}{% endblock %} +{% block content %} +{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
+ {% else %} + {% if form %} +{% trans 'Your password is now changed.' %}
+ {% endif %} + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/user/templates/account/password_reset_from_key_done.html b/user/templates/account/password_reset_from_key_done.html new file mode 100644 index 0000000..843886f --- /dev/null +++ b/user/templates/account/password_reset_from_key_done.html @@ -0,0 +1,23 @@ +{% extends 'account/base.html' %} + + +{% load i18n %} +{% load account socialaccount %} +{% block head_title %}{% trans "Password Management" %}{% endblock %} +{% block content %} +