Skip to content
Snippets Groups Projects
Commit f23b0f85 authored by Michael Fladischer's avatar Michael Fladischer
Browse files

New upstream version 1.2.4

parent 08ad72d0
No related branches found
No related tags found
No related merge requests found
[bumpversion]
current_version = 1.2.2
current_version = 1.2.4
commit = true
message = Version {new_version}
tag = true
......
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye
ENV PYTHONUNBUFFERED 1
# [Optional] If your requirements rarely change, uncomment this section to add them to the image.
# COPY requirements.txt /tmp/pip-tmp/
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
# && rm -rf /tmp/pip-tmp
# [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends postgresql-client
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/postgres
{
"name": "Python 3 & PostgreSQL",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": {
"ghcr.io/devcontainers-contrib/features/hatch:2": {
"version": "latest"
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// This can be used to network with other containers or the host.
"forwardPorts": [8000],
"containerEnv": {"DJANGO_OTP_CONFIG": "test/config/github.toml"}
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip install --user -r requirements.txt",
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
version: '3.8'
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ../..:/workspaces:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
db:
image: postgres:latest
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: django-otp
POSTGRES_PASSWORD: postgres
# Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
volumes:
postgres-data:
v1.2.4 - October 05, 2023 - Portuguese translation
--------------------------------------------------------------------------------
- `#133`_: Add pt-PT translation.
.. _#133: https://github.com/django-otp/django-otp/pull/133
v1.2.3 - September 17, 2023 - German translation fix
--------------------------------------------------------------------------------
- `#131`_: Fix German translation
.. _#131: https://github.com/django-otp/django-otp/pull/131
v1.2.2 - June 16, 2023 - otp_email html support
--------------------------------------------------------------------------------
......
......@@ -89,7 +89,7 @@ project = 'django-otp'
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '1.2.2'
release = '1.2.4'
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
......
[project]
name = "django-otp"
version = "1.2.2"
version = "1.2.4"
description = "A pluggable framework for adding two-factor authentication to Django using one-time passwords."
readme = "README.rst"
requires-python = ">=3.7"
......
No preview for this file type
......@@ -37,7 +37,7 @@ msgstr "Einmalpasswort-Challenge: {0}"
#: .\src\django_otp\forms.py:63
msgid "Invalid token. Please make sure you have entered it correctly."
msgstr "Üngültiges Einmalpasswort. Bitte überprüfe die Eingabe."
msgstr "Ungültiges Einmalpasswort. Bitte überprüfe die Eingabe."
#: .\src\django_otp\forms.py:65
#, python-format
......
File added
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# João Duarte <jduar@protonmail.com>, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: django-otp master\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-02 11:00-0500\n"
"PO-Revision-Date: 2023-10-02 11:00-0500\n"
"Last-Translator: João Duarte <jduar@protonmail.com>\n"
"Language-Team: \n"
"Language: pt_PT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: src/django_otp/forms.py:60
msgid "Please enter your OTP token."
msgstr "Insira por favor o código OTP."
#: src/django_otp/forms.py:61
#, python-brace-format
msgid "Error generating challenge: {0}"
msgstr "Erro ao gerar o desafio: {0}"
#: src/django_otp/forms.py:62
msgid "The selected OTP device is not interactive"
msgstr "O dispositivo OTP selecionado não é interativo"
#: src/django_otp/forms.py:63
#, python-brace-format
msgid "OTP Challenge: {0}"
msgstr "Desafio OTP: {0}"
#: src/django_otp/forms.py:65
msgid "Invalid token. Please make sure you have entered it correctly."
msgstr "Código inválido. Certifique-se por favor de que o inseriu corretamente."
#: src/django_otp/forms.py:68
#, python-format
msgid ""
"Verification temporarily disabled because of %(failure_count)d failed "
"attempt, please try again soon."
msgid_plural ""
"Verification temporarily disabled because of %(failure_count)d failed "
"attempts, please try again soon."
msgstr[0] ""
"Verificação desativada temporariamente devido a %(failure_count)d tentativa "
"falhada, por favor tente novamente mais tarde."
msgstr[1] ""
"Verificação desativada temporariamente devido a %(failure_count)d tentativas "
"falhadas, por favor tente novamente mais tarde."
#: src/django_otp/forms.py:73
msgid "Verification of the token is currently disabled"
msgstr "A verificação do código está desativada de momento"
#: src/django_otp/templates/otp/admin111/login.html:38
msgid "Please correct the error below."
msgstr "Corrija por favor o erro abaixo."
#: src/django_otp/templates/otp/admin111/login.html:38
msgid "Please correct the errors below."
msgstr "Corrija por favor os erros abaixo."
#: src/django_otp/templates/otp/admin111/login.html:54
#, python-format
msgid ""
"You are authenticated as %(username)s, but are not authorized to access this "
"page. Would you like to login to a different account?"
msgstr ""
"Está autenticado como %(username)s, mas não está autorizado a aceder "
"a esta página. Gostaria de autenticar-se com uma conta diferente?"
#: src/django_otp/templates/otp/admin111/login.html:74
msgid "OTP Device:"
msgstr "Dispositivo OTP:"
#: src/django_otp/templates/otp/admin111/login.html:79
msgid "OTP Token:"
msgstr "Código OTP:"
#: src/django_otp/templates/otp/admin111/login.html:84
msgid "Forgotten your password or username?"
msgstr "Esqueceu-se da sua palavra-passe ou nome de utilizador?"
#: src/django_otp/templates/otp/admin111/login.html:88
msgid "Log in"
msgstr "Entrar"
#: src/django_otp/templates/otp/admin111/login.html:90
msgid "Get OTP Challenge"
msgstr "Obter o desafio OTP"
# Configuration for our GitHub workflow.
# Configuration for our GitHub workflows and codespaces.
[database]
ENGINE = "django.db.backends.postgresql"
HOST = "localhost"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment