From 2ab42b20c71ef82131c86ec1e78486de89179153 Mon Sep 17 00:00:00 2001 From: Danhia Date: Mon, 31 Jan 2022 19:21:14 +0100 Subject: [PATCH] you can now delete your account --- src/accounts/templates/accounts/delete.html | 33 ++++++++ src/accounts/templates/accounts/edit.html | 8 ++ src/accounts/urls.py | 3 +- src/accounts/views/views.py | 17 ++++ src/locale/de/LC_MESSAGES/django.po | 69 ++++++++++++---- src/locale/en/LC_MESSAGES/django.po | 69 ++++++++++++---- src/locale/es/LC_MESSAGES/django.po | 69 ++++++++++++---- src/locale/fr/LC_MESSAGES/django.po | 82 +++++++++++++++---- src/locale/it/LC_MESSAGES/django.po | 69 ++++++++++++---- src/locale/ru/LC_MESSAGES/django.po | 69 ++++++++++++---- src/resources/locale/de/LC_MESSAGES/django.po | 2 +- src/resources/locale/en/LC_MESSAGES/django.po | 2 +- src/resources/locale/es/LC_MESSAGES/django.po | 2 +- src/resources/locale/fr/LC_MESSAGES/django.po | 2 +- src/resources/locale/it/LC_MESSAGES/django.po | 2 +- src/resources/locale/ru/LC_MESSAGES/django.po | 2 +- 16 files changed, 406 insertions(+), 94 deletions(-) create mode 100644 src/accounts/templates/accounts/delete.html diff --git a/src/accounts/templates/accounts/delete.html b/src/accounts/templates/accounts/delete.html new file mode 100644 index 0000000..1aae774 --- /dev/null +++ b/src/accounts/templates/accounts/delete.html @@ -0,0 +1,33 @@ +{% extends 'base.html' %} +{% block content %} +{% load i18n %} +
+
+
+
+

{% trans "Delete account" %}

+
+
+ {% trans "Please confirm your password to delete your account." %}
+ {% trans "Deleted accounts cannot be recovered." %}

+
+ {% if bad_password %} + {% trans "Password inccorect." %} + {% elif deleted %} + {% trans "Your account has been deleted." %} + {% endif %} +
+ {% csrf_token %} +
+
+ +
+
+
+
+
+ +
+
+{% endblock %} + diff --git a/src/accounts/templates/accounts/edit.html b/src/accounts/templates/accounts/edit.html index 0df35aa..07eaba6 100644 --- a/src/accounts/templates/accounts/edit.html +++ b/src/accounts/templates/accounts/edit.html @@ -54,6 +54,14 @@ {% endif %}
  • {% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}
  • + {% endblock %} diff --git a/src/accounts/urls.py b/src/accounts/urls.py index 38b9e53..abf5ec9 100644 --- a/src/accounts/urls.py +++ b/src/accounts/urls.py @@ -12,5 +12,6 @@ urlpatterns = [ path('rank/', views.rank, name='rank'), path('connections/connect/discord', views.connection.connect, name='connections-connect-discord'), path('connections/connect/discord/authorize', views.connection.authorize, name='connections-connect-discord-authorize'), - path('connections/disconnect/discord', views.connection.disconnect, name='connections-disconnect-discord') + path('connections/disconnect/discord', views.connection.disconnect, name='connections-disconnect-discord'), + path('delete_account/', views.delete_account, name='delete_account'), ] diff --git a/src/accounts/views/views.py b/src/accounts/views/views.py index b4367a6..dcfdd8e 100644 --- a/src/accounts/views/views.py +++ b/src/accounts/views/views.py @@ -163,3 +163,20 @@ def rank(request, token): rank += 1 data = {"rank": rank} return JsonResponse(data) + +@login_required +def delete_account(request): + if request.method == 'POST': + user = request.user + + password = request.POST.get('password') + if user.check_password(password): + logout(request) + user.delete() + return render(request, 'accounts/delete.html', {'deleted': True, 'bad_password': False}) + + else: + return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': True}) + + else: + return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': False} ) \ No newline at end of file diff --git a/src/locale/de/LC_MESSAGES/django.po b/src/locale/de/LC_MESSAGES/django.po index 1b7f22b..fa163cd 100644 --- a/src/locale/de/LC_MESSAGES/django.po +++ b/src/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: accounts/templates/accounts/delete.html:8 +msgid "Delete account" +msgstr "" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +msgid "Your account has been deleted." +msgstr "" + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -61,15 +89,12 @@ msgstr "" msgid "Registered since" msgstr "" -#: accounts/templates/accounts/login.html:13 -msgid "Please, verify your infos." +#: accounts/templates/accounts/edit.html:61 +msgid "Delete my account" msgstr "" -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" +#: accounts/templates/accounts/login.html:13 +msgid "Please, verify your infos." msgstr "" #: accounts/templates/accounts/login.html:22 @@ -202,7 +227,7 @@ msgid "Challenge is not yet available." msgstr "" #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -440,22 +465,38 @@ msgstr "" msgid "It seems that this team has not solved any challenge yet..." msgstr "" -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "" -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +msgid "points" +msgstr "" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "" +#: home/templates/home/home.html:94 +msgid "Users" +msgstr "" + #: project/settings.py:115 msgid "English" msgstr "" @@ -508,7 +549,7 @@ msgstr "" msgid "Sign Up" msgstr "" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "" diff --git a/src/locale/en/LC_MESSAGES/django.po b/src/locale/en/LC_MESSAGES/django.po index 1b7f22b..fa163cd 100644 --- a/src/locale/en/LC_MESSAGES/django.po +++ b/src/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: accounts/templates/accounts/delete.html:8 +msgid "Delete account" +msgstr "" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +msgid "Your account has been deleted." +msgstr "" + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -61,15 +89,12 @@ msgstr "" msgid "Registered since" msgstr "" -#: accounts/templates/accounts/login.html:13 -msgid "Please, verify your infos." +#: accounts/templates/accounts/edit.html:61 +msgid "Delete my account" msgstr "" -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" +#: accounts/templates/accounts/login.html:13 +msgid "Please, verify your infos." msgstr "" #: accounts/templates/accounts/login.html:22 @@ -202,7 +227,7 @@ msgid "Challenge is not yet available." msgstr "" #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -440,22 +465,38 @@ msgstr "" msgid "It seems that this team has not solved any challenge yet..." msgstr "" -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "" -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +msgid "points" +msgstr "" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "" +#: home/templates/home/home.html:94 +msgid "Users" +msgstr "" + #: project/settings.py:115 msgid "English" msgstr "" @@ -508,7 +549,7 @@ msgstr "" msgid "Sign Up" msgstr "" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "" diff --git a/src/locale/es/LC_MESSAGES/django.po b/src/locale/es/LC_MESSAGES/django.po index 1b7f22b..fa163cd 100644 --- a/src/locale/es/LC_MESSAGES/django.po +++ b/src/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: accounts/templates/accounts/delete.html:8 +msgid "Delete account" +msgstr "" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +msgid "Your account has been deleted." +msgstr "" + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -61,15 +89,12 @@ msgstr "" msgid "Registered since" msgstr "" -#: accounts/templates/accounts/login.html:13 -msgid "Please, verify your infos." +#: accounts/templates/accounts/edit.html:61 +msgid "Delete my account" msgstr "" -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" +#: accounts/templates/accounts/login.html:13 +msgid "Please, verify your infos." msgstr "" #: accounts/templates/accounts/login.html:22 @@ -202,7 +227,7 @@ msgid "Challenge is not yet available." msgstr "" #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -440,22 +465,38 @@ msgstr "" msgid "It seems that this team has not solved any challenge yet..." msgstr "" -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "" -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +msgid "points" +msgstr "" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "" +#: home/templates/home/home.html:94 +msgid "Users" +msgstr "" + #: project/settings.py:115 msgid "English" msgstr "" @@ -508,7 +549,7 @@ msgstr "" msgid "Sign Up" msgstr "" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "" diff --git a/src/locale/fr/LC_MESSAGES/django.po b/src/locale/fr/LC_MESSAGES/django.po index 1dcfe9e..7c4220e 100644 --- a/src/locale/fr/LC_MESSAGES/django.po +++ b/src/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,38 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" +#: accounts/templates/accounts/delete.html:8 +#, fuzzy +#| msgid "Connected accounts" +msgid "Delete account" +msgstr "Comptes connectés" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +#, fuzzy +#| msgid "Your account has been created." +msgid "Your account has been deleted." +msgstr "Votre compte a été créé." + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "Mot de passe" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -61,17 +93,16 @@ msgstr "Score" msgid "Registered since" msgstr "Inscrit depuis" +#: accounts/templates/accounts/edit.html:61 +#, fuzzy +#| msgid "Connected accounts" +msgid "Delete my account" +msgstr "Comptes connectés" + #: accounts/templates/accounts/login.html:13 msgid "Please, verify your infos." msgstr "Merci de vérifier vos informations." -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" -msgstr "Mot de passe" - #: accounts/templates/accounts/login.html:22 msgid "Reset password" msgstr "Réinitialiser le mot de passe" @@ -208,7 +239,7 @@ msgid "Challenge is not yet available." msgstr "Il n'y a pas de catégorie disponible." #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -460,22 +491,42 @@ msgstr "Quitte l'équipe" msgid "It seems that this team has not solved any challenge yet..." msgstr "Il semble que cette équipe n'a pas encore résolu de challenge..." -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "Il n'y a pas d'article disponible." -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "Derniers challenges ajoutés" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +#, fuzzy +#| msgid "Points" +msgid "points" +msgstr "Points" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "Pas de challenge disponible" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "Compteur de flags" +#: home/templates/home/home.html:94 +#, fuzzy +#| msgid "Username" +msgid "Users" +msgstr "Pseudo" + #: project/settings.py:115 msgid "English" msgstr "Anglais" @@ -528,7 +579,7 @@ msgstr "Déconnexion" msgid "Sign Up" msgstr "Inscription" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "Soutenez nous via Patreon !" @@ -578,9 +629,6 @@ msgstr "Réinitialiser" #~ msgid "End at" #~ msgstr "Fin" -#~ msgid "Connected accounts" -#~ msgstr "Comptes connectés" - #~ msgid "Disconnect Discord" #~ msgstr "Déconnecter Discord" diff --git a/src/locale/it/LC_MESSAGES/django.po b/src/locale/it/LC_MESSAGES/django.po index 1b7f22b..fa163cd 100644 --- a/src/locale/it/LC_MESSAGES/django.po +++ b/src/locale/it/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,6 +18,34 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +#: accounts/templates/accounts/delete.html:8 +msgid "Delete account" +msgstr "" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +msgid "Your account has been deleted." +msgstr "" + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -61,15 +89,12 @@ msgstr "" msgid "Registered since" msgstr "" -#: accounts/templates/accounts/login.html:13 -msgid "Please, verify your infos." +#: accounts/templates/accounts/edit.html:61 +msgid "Delete my account" msgstr "" -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" +#: accounts/templates/accounts/login.html:13 +msgid "Please, verify your infos." msgstr "" #: accounts/templates/accounts/login.html:22 @@ -202,7 +227,7 @@ msgid "Challenge is not yet available." msgstr "" #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -440,22 +465,38 @@ msgstr "" msgid "It seems that this team has not solved any challenge yet..." msgstr "" -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "" -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +msgid "points" +msgstr "" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "" +#: home/templates/home/home.html:94 +msgid "Users" +msgstr "" + #: project/settings.py:115 msgid "English" msgstr "" @@ -508,7 +549,7 @@ msgstr "" msgid "Sign Up" msgstr "" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "" diff --git a/src/locale/ru/LC_MESSAGES/django.po b/src/locale/ru/LC_MESSAGES/django.po index 80c778a..4f6b558 100644 --- a/src/locale/ru/LC_MESSAGES/django.po +++ b/src/locale/ru/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -20,6 +20,34 @@ msgstr "" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%100>=11 && n%100<=14)? 2 : 3);\n" +#: accounts/templates/accounts/delete.html:8 +msgid "Delete account" +msgstr "" + +#: accounts/templates/accounts/delete.html:11 +msgid "Please confirm your password to delete your account." +msgstr "" + +#: accounts/templates/accounts/delete.html:12 +msgid "Deleted accounts cannot be recovered." +msgstr "" + +#: accounts/templates/accounts/delete.html:15 +msgid "Password inccorect." +msgstr "" + +#: accounts/templates/accounts/delete.html:17 +msgid "Your account has been deleted." +msgstr "" + +#: accounts/templates/accounts/delete.html:22 +#: accounts/templates/accounts/login.html:19 +#: accounts/templates/accounts/register.html:23 +#: events/templates/events/create_team.html:26 +#: events/templates/events/join_team.html:31 +msgid "Password" +msgstr "" + #: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/register.html:22 @@ -63,15 +91,12 @@ msgstr "счет" msgid "Registered since" msgstr "" -#: accounts/templates/accounts/login.html:13 -msgid "Please, verify your infos." +#: accounts/templates/accounts/edit.html:61 +msgid "Delete my account" msgstr "" -#: accounts/templates/accounts/login.html:19 -#: accounts/templates/accounts/register.html:23 -#: events/templates/events/create_team.html:26 -#: events/templates/events/join_team.html:31 -msgid "Password" +#: accounts/templates/accounts/login.html:13 +msgid "Please, verify your infos." msgstr "" #: accounts/templates/accounts/login.html:22 @@ -206,7 +231,7 @@ msgid "Challenge is not yet available." msgstr "Нет доступных статей." #: ctfs/templates/ctfs/ctf_info.html:20 -#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:22 +#: events/templates/events/ctf_info.html:17 home/templates/home/home.html:46 msgid "" "No translation available. Please try another language (English or French)." msgstr "" @@ -450,22 +475,38 @@ msgstr "" msgid "It seems that this team has not solved any challenge yet..." msgstr "" -#: home/templates/home/home.html:32 +#: home/templates/home/home.html:20 +msgid "Weekly Top 5" +msgstr "" + +#: home/templates/home/home.html:56 msgid "No article available." msgstr "Нет доступных статей." -#: home/templates/home/home.html:37 +#: home/templates/home/home.html:61 msgid "Latest challenges added" msgstr "" -#: home/templates/home/home.html:43 +#: home/templates/home/home.html:66 +msgid "points" +msgstr "" + +#: home/templates/home/home.html:70 msgid "No ctf available." msgstr "" -#: home/templates/home/home.html:53 +#: home/templates/home/home.html:74 +msgid "Latest Flags" +msgstr "" + +#: home/templates/home/home.html:88 msgid "Flags counter" msgstr "" +#: home/templates/home/home.html:94 +msgid "Users" +msgstr "" + #: project/settings.py:115 msgid "English" msgstr "" @@ -518,7 +559,7 @@ msgstr "Выйти" msgid "Sign Up" msgstr "" -#: templates/base.html:134 +#: templates/base.html:144 msgid "Become a Patron!" msgstr "" diff --git a/src/resources/locale/de/LC_MESSAGES/django.po b/src/resources/locale/de/LC_MESSAGES/django.po index 7f14a31..8eaef40 100644 --- a/src/resources/locale/de/LC_MESSAGES/django.po +++ b/src/resources/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/resources/locale/en/LC_MESSAGES/django.po b/src/resources/locale/en/LC_MESSAGES/django.po index 7f14a31..8eaef40 100644 --- a/src/resources/locale/en/LC_MESSAGES/django.po +++ b/src/resources/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/resources/locale/es/LC_MESSAGES/django.po b/src/resources/locale/es/LC_MESSAGES/django.po index 7f14a31..8eaef40 100644 --- a/src/resources/locale/es/LC_MESSAGES/django.po +++ b/src/resources/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/resources/locale/fr/LC_MESSAGES/django.po b/src/resources/locale/fr/LC_MESSAGES/django.po index ee0d281..8873f1b 100644 --- a/src/resources/locale/fr/LC_MESSAGES/django.po +++ b/src/resources/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/resources/locale/it/LC_MESSAGES/django.po b/src/resources/locale/it/LC_MESSAGES/django.po index 7f14a31..8eaef40 100644 --- a/src/resources/locale/it/LC_MESSAGES/django.po +++ b/src/resources/locale/it/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/resources/locale/ru/LC_MESSAGES/django.po b/src/resources/locale/ru/LC_MESSAGES/django.po index a7c8e1c..53fc387 100644 --- a/src/resources/locale/ru/LC_MESSAGES/django.po +++ b/src/resources/locale/ru/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-01-23 17:31+0000\n" +"POT-Creation-Date: 2022-01-31 19:20+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"