you can now delete your account

This commit is contained in:
Danhia 2022-01-31 19:21:14 +01:00
parent 14763469df
commit 04925ed5b5
16 changed files with 406 additions and 94 deletions

View File

@ -0,0 +1,33 @@
{% extends 'base.html' %}
{% block content %}
{% load i18n %}
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="ctf-block">
<div class="ctf-head">
<h3>{% trans "Delete account" %}</h3>
</div>
<div class="ctf-body">
{% trans "Please confirm your password to delete your account." %}<br>
{% trans "Deleted accounts cannot be recovered." %}<br><br>
<div class="col-sm-8 col-md-6 mx-auto">
{% if bad_password %}
<span class="message error-msg">{% trans "Password inccorect." %}</span>
{% elif deleted %}
<span class="message success-msg">{% trans "Your account has been deleted." %}</span>
{% endif %}
<form method="post">
{% csrf_token %}
<div class="form-group">
<input class="form-control" type="password" name="password" placeholder="{% trans "Password" %}"></br>
<input class="form-control" type="submit" value="Delete">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -54,6 +54,14 @@
{% endif %} {% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li> <li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
</ul> </ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:delete_account' %}">
{%csrf_token%}
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans "Delete my account" %}">
</li>
</form>
</ul>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -12,5 +12,6 @@ urlpatterns = [
path('rank/<str:token>', views.rank, name='rank'), path('rank/<str:token>', views.rank, name='rank'),
path('connections/connect/discord', views.connection.connect, name='connections-connect-discord'), 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/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'),
] ]

View File

@ -163,3 +163,20 @@ def rank(request, token):
rank += 1 rank += 1
data = {"rank": rank} data = {"rank": rank}
return JsonResponse(data) 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} )

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,34 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -61,15 +89,12 @@ msgstr ""
msgid "Registered since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/edit.html:61
msgid "Please, verify your infos." msgid "Delete my account"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/register.html:23 msgid "Please, verify your infos."
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
@ -202,7 +227,7 @@ msgid "Challenge is not yet available."
msgstr "" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -440,22 +465,38 @@ msgstr ""
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "" 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." msgid "No article available."
msgstr "" msgstr ""
#: home/templates/home/home.html:37 #: home/templates/home/home.html:61
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "" 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." msgid "No ctf available."
msgstr "" 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" msgid "Flags counter"
msgstr "" msgstr ""
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "" msgstr ""
@ -508,7 +549,7 @@ msgstr ""
msgid "Sign Up" msgid "Sign Up"
msgstr "" msgstr ""
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,34 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -61,15 +89,12 @@ msgstr ""
msgid "Registered since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/edit.html:61
msgid "Please, verify your infos." msgid "Delete my account"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/register.html:23 msgid "Please, verify your infos."
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
@ -202,7 +227,7 @@ msgid "Challenge is not yet available."
msgstr "" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -440,22 +465,38 @@ msgstr ""
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "" 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." msgid "No article available."
msgstr "" msgstr ""
#: home/templates/home/home.html:37 #: home/templates/home/home.html:61
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "" 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." msgid "No ctf available."
msgstr "" 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" msgid "Flags counter"
msgstr "" msgstr ""
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "" msgstr ""
@ -508,7 +549,7 @@ msgstr ""
msgid "Sign Up" msgid "Sign Up"
msgstr "" msgstr ""
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,34 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -61,15 +89,12 @@ msgstr ""
msgid "Registered since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/edit.html:61
msgid "Please, verify your infos." msgid "Delete my account"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/register.html:23 msgid "Please, verify your infos."
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
@ -202,7 +227,7 @@ msgid "Challenge is not yet available."
msgstr "" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -440,22 +465,38 @@ msgstr ""
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "" 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." msgid "No article available."
msgstr "" msgstr ""
#: home/templates/home/home.html:37 #: home/templates/home/home.html:61
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "" 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." msgid "No ctf available."
msgstr "" 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" msgid "Flags counter"
msgstr "" msgstr ""
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "" msgstr ""
@ -508,7 +549,7 @@ msgstr ""
msgid "Sign Up" msgid "Sign Up"
msgstr "" msgstr ""
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,38 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -61,17 +93,16 @@ msgstr "Score"
msgid "Registered since" msgid "Registered since"
msgstr "Inscrit depuis" 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 #: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos." msgid "Please, verify your infos."
msgstr "Merci de vérifier vos informations." 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 #: accounts/templates/accounts/login.html:22
msgid "Reset password" msgid "Reset password"
msgstr "Réinitialiser le mot de passe" 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." msgstr "Il n'y a pas de catégorie disponible."
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -460,22 +491,42 @@ msgstr "Quitte l'équipe"
msgid "It seems that this team has not solved any challenge yet..." 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..." 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." msgid "No article available."
msgstr "Il n'y a pas d'article disponible." 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" msgid "Latest challenges added"
msgstr "Derniers challenges ajoutés" 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." msgid "No ctf available."
msgstr "Pas de challenge disponible" 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" msgid "Flags counter"
msgstr "Compteur de flags" msgstr "Compteur de flags"
#: home/templates/home/home.html:94
#, fuzzy
#| msgid "Username"
msgid "Users"
msgstr "Pseudo"
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "Anglais" msgstr "Anglais"
@ -528,7 +579,7 @@ msgstr "Déconnexion"
msgid "Sign Up" msgid "Sign Up"
msgstr "Inscription" msgstr "Inscription"
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "Soutenez nous via Patreon !" msgstr "Soutenez nous via Patreon !"
@ -578,9 +629,6 @@ msgstr "Réinitialiser"
#~ msgid "End at" #~ msgid "End at"
#~ msgstr "Fin" #~ msgstr "Fin"
#~ msgid "Connected accounts"
#~ msgstr "Comptes connectés"
#~ msgid "Disconnect Discord" #~ msgid "Disconnect Discord"
#~ msgstr "Déconnecter Discord" #~ msgstr "Déconnecter Discord"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,6 +18,34 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -61,15 +89,12 @@ msgstr ""
msgid "Registered since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/edit.html:61
msgid "Please, verify your infos." msgid "Delete my account"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/register.html:23 msgid "Please, verify your infos."
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
@ -202,7 +227,7 @@ msgid "Challenge is not yet available."
msgstr "" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -440,22 +465,38 @@ msgstr ""
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "" 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." msgid "No article available."
msgstr "" msgstr ""
#: home/templates/home/home.html:37 #: home/templates/home/home.html:61
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "" 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." msgid "No ctf available."
msgstr "" 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" msgid "Flags counter"
msgstr "" msgstr ""
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "" msgstr ""
@ -508,7 +549,7 @@ msgstr ""
msgid "Sign Up" msgid "Sign Up"
msgstr "" msgstr ""
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\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" "%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" "%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/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
@ -63,15 +91,12 @@ msgstr "счет"
msgid "Registered since" msgid "Registered since"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/edit.html:61
msgid "Please, verify your infos." msgid "Delete my account"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:13
#: accounts/templates/accounts/register.html:23 msgid "Please, verify your infos."
#: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31
msgid "Password"
msgstr "" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
@ -206,7 +231,7 @@ msgid "Challenge is not yet available."
msgstr "Нет доступных статей." msgstr "Нет доступных статей."
#: ctfs/templates/ctfs/ctf_info.html:20 #: 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 "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "" msgstr ""
@ -450,22 +475,38 @@ msgstr ""
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "" 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." msgid "No article available."
msgstr "Нет доступных статей." msgstr "Нет доступных статей."
#: home/templates/home/home.html:37 #: home/templates/home/home.html:61
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "" 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." msgid "No ctf available."
msgstr "" 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" msgid "Flags counter"
msgstr "" msgstr ""
#: home/templates/home/home.html:94
msgid "Users"
msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "" msgstr ""
@ -518,7 +559,7 @@ msgstr "Выйти"
msgid "Sign Up" msgid "Sign Up"
msgstr "" msgstr ""
#: templates/base.html:134 #: templates/base.html:144
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"