commit
abe1ad447b
@ -273,7 +273,7 @@ Emails sent by FitTrackee are:
|
|||||||
|
|
||||||
- account confirmation instructions
|
- account confirmation instructions
|
||||||
- password reset request
|
- password reset request
|
||||||
- email change (to old and new email adresses)
|
- email change (to old and new email addresses)
|
||||||
- password change
|
- password change
|
||||||
- notification when a data export archive is ready to download (*new in 0.7.13*)
|
- notification when a data export archive is ready to download (*new in 0.7.13*)
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ API rate limits
|
|||||||
$ flask limiter
|
$ flask limiter
|
||||||
Usage: flask limiter [OPTIONS] COMMAND [ARGS]...
|
Usage: flask limiter [OPTIONS] COMMAND [ARGS]...
|
||||||
|
|
||||||
Flask-Limiter maintenance & utility commmands
|
Flask-Limiter maintenance & utility commands
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--help Show this message and exit.
|
--help Show this message and exit.
|
||||||
|
@ -1249,7 +1249,7 @@ class TestUpdateUser(ApiTestCaseMixin):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.assert_400(
|
self.assert_400(
|
||||||
response, 'new email must be different than curent email'
|
response, 'new email must be different than current email'
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_it_does_not_send_email_when_error_on_updating_email(
|
def test_it_does_not_send_email_when_error_on_updating_email(
|
||||||
|
@ -161,7 +161,7 @@ class TestUserManagerServiceUserUpdate:
|
|||||||
user_manager_service = UserManagerService(username=user_1.username)
|
user_manager_service = UserManagerService(username=user_1.username)
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
InvalidEmailException,
|
InvalidEmailException,
|
||||||
match='new email must be different than curent email',
|
match='new email must be different than current email',
|
||||||
):
|
):
|
||||||
user_manager_service.update(new_email=user_1.email)
|
user_manager_service.update(new_email=user_1.email)
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ def update_user(auth_user: User, user_name: str) -> Union[Dict, HttpResponse]:
|
|||||||
:statuscode 400:
|
:statuscode 400:
|
||||||
- ``invalid payload``
|
- ``invalid payload``
|
||||||
- ``valid email must be provided``
|
- ``valid email must be provided``
|
||||||
- ``new email must be different than curent email``
|
- ``new email must be different than current email``
|
||||||
:statuscode 401:
|
:statuscode 401:
|
||||||
- ``provide a valid auth token``
|
- ``provide a valid auth token``
|
||||||
- ``signature expired, please log in again``
|
- ``signature expired, please log in again``
|
||||||
|
@ -49,7 +49,7 @@ class UserManagerService:
|
|||||||
raise InvalidEmailException('valid email must be provided')
|
raise InvalidEmailException('valid email must be provided')
|
||||||
if user.email == new_email:
|
if user.email == new_email:
|
||||||
raise InvalidEmailException(
|
raise InvalidEmailException(
|
||||||
'new email must be different than curent email'
|
'new email must be different than current email'
|
||||||
)
|
)
|
||||||
if with_confirmation:
|
if with_confirmation:
|
||||||
user.email_to_confirm = new_email
|
user.email_to_confirm = new_email
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Die bereitgestellten Daten sind ungültig.",
|
"invalid payload": "Die bereitgestellten Daten sind ungültig.",
|
||||||
"invalid token, please log in again": "Ungültiges Token, bitte erneut anmelden.",
|
"invalid token, please log in again": "Ungültiges Token, bitte erneut anmelden.",
|
||||||
"invalid token, please request a new token": "Ungültiges Token, bitte erneut anmelden.",
|
"invalid token, please request a new token": "Ungültiges Token, bitte erneut anmelden.",
|
||||||
"new email must be different than curent email": "Die neue E-Mail muss sich von der aktuellen E-Mail unterscheiden",
|
"new email must be different than current email": "Die neue E-Mail muss sich von der aktuellen E-Mail unterscheiden",
|
||||||
"no file part": "Keine Datei angegeben.",
|
"no file part": "Keine Datei angegeben.",
|
||||||
"no selected file": "Keine Datei ausgewählt.",
|
"no selected file": "Keine Datei ausgewählt.",
|
||||||
"no tracks in gpx file": "Kein Track (<trk>) in der .gpx-Datei.",
|
"no tracks in gpx file": "Kein Track (<trk>) in der .gpx-Datei.",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Provided data are invalid.",
|
"invalid payload": "Provided data are invalid.",
|
||||||
"invalid token, please log in again": "Invalid token, please log in again.",
|
"invalid token, please log in again": "Invalid token, please log in again.",
|
||||||
"invalid token, please request a new token": "Invalid token, please log in again.",
|
"invalid token, please request a new token": "Invalid token, please log in again.",
|
||||||
"new email must be different than curent email": "The new email must be different than curent email",
|
"new email must be different than current email": "The new email must be different than current email",
|
||||||
"no file part": "No file provided.",
|
"no file part": "No file provided.",
|
||||||
"no selected file": "No selected file.",
|
"no selected file": "No selected file.",
|
||||||
"no tracks in gpx file": "No track (<trk>) in .gpx file.",
|
"no tracks in gpx file": "No track (<trk>) in .gpx file.",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Los datos proporcionados no son válidos.",
|
"invalid payload": "Los datos proporcionados no son válidos.",
|
||||||
"invalid token, please log in again": "Token no válido, por favor vuelve a iniciar sesión.",
|
"invalid token, please log in again": "Token no válido, por favor vuelve a iniciar sesión.",
|
||||||
"invalid token, please request a new token": "Token no válido, inicia sesión de nuevo.",
|
"invalid token, please request a new token": "Token no válido, inicia sesión de nuevo.",
|
||||||
"new email must be different than curent email": "El nuevo email tiene que ser diferente al email actual",
|
"new email must be different than current email": "El nuevo email tiene que ser diferente al email actual",
|
||||||
"no file part": "Sin fichero.",
|
"no file part": "Sin fichero.",
|
||||||
"no selected file": "Sin fichero seleccionado.",
|
"no selected file": "Sin fichero seleccionado.",
|
||||||
"no tracks in gpx file": "No hay pista (<trk>) en el archivo .gpx.",
|
"no tracks in gpx file": "No hay pista (<trk>) en el archivo .gpx.",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Données fournies incorrectes.",
|
"invalid payload": "Données fournies incorrectes.",
|
||||||
"invalid token, please log in again": "Jeton de connexion invalide, merci de vous reconnecter.",
|
"invalid token, please log in again": "Jeton de connexion invalide, merci de vous reconnecter.",
|
||||||
"invalid token, please request a new token": "Jeton de connexion, merci de vous reconnecter.",
|
"invalid token, please request a new token": "Jeton de connexion, merci de vous reconnecter.",
|
||||||
"new email must be different than curent email": "La nouvelle addresse électronique doit être differente de l'adresse actuelle",
|
"new email must be different than current email": "La nouvelle addresse électronique doit être differente de l'adresse actuelle",
|
||||||
"no file part": "Pas de fichier fourni.",
|
"no file part": "Pas de fichier fourni.",
|
||||||
"no selected file": "Pas de fichier sélectionné.",
|
"no selected file": "Pas de fichier sélectionné.",
|
||||||
"no tracks in gpx file": "Pas de trace (<trk>) dans le fichier .gpx.",
|
"no tracks in gpx file": "Pas de trace (<trk>) dans le fichier .gpx.",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Os datos proporcionados non son válidos.",
|
"invalid payload": "Os datos proporcionados non son válidos.",
|
||||||
"invalid token, please log in again": "Token non válido, accede outra vez.",
|
"invalid token, please log in again": "Token non válido, accede outra vez.",
|
||||||
"invalid token, please request a new token": "Token non válido, accede outra vez.",
|
"invalid token, please request a new token": "Token non válido, accede outra vez.",
|
||||||
"new email must be different than curent email": "O novo email ten que ser diferente ao actual",
|
"new email must be different than current email": "O novo email ten que ser diferente ao actual",
|
||||||
"no file part": "Sen ficheiro proporcionado.",
|
"no file part": "Sen ficheiro proporcionado.",
|
||||||
"no selected file": "Sen ficheiro seleccionado.",
|
"no selected file": "Sen ficheiro seleccionado.",
|
||||||
"no tracks in gpx file": "Non hai ruta (<trk>) no ficheiro .gpx.",
|
"no tracks in gpx file": "Non hai ruta (<trk>) no ficheiro .gpx.",
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"invalid payload": "I dati inseriti non sono validi.",
|
"invalid payload": "I dati inseriti non sono validi.",
|
||||||
"invalid token, please log in again": "Token scaduto, per favore ripeti il log in.",
|
"invalid token, please log in again": "Token scaduto, per favore ripeti il log in.",
|
||||||
"invalid token, please request a new token": "Token scaduto, per favore ripeti il log in.",
|
"invalid token, please request a new token": "Token scaduto, per favore ripeti il log in.",
|
||||||
"new email must be different than curent email": "La nuova email dev'essere diversa dalla vecchia mail",
|
"new email must be different than current email": "La nuova email dev'essere diversa dalla vecchia mail",
|
||||||
"no file part": "Nessun file scelto.",
|
"no file part": "Nessun file scelto.",
|
||||||
"no selected file": "Nessun file scelto.",
|
"no selected file": "Nessun file scelto.",
|
||||||
"password: password and password confirmation do not match": "Password: la password inserita e la conferma non combaciano.",
|
"password: password and password confirmation do not match": "Password: la password inserita e la conferma non combaciano.",
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"invalid payload": "Ingegeven data is ongeldig.",
|
"invalid payload": "Ingegeven data is ongeldig.",
|
||||||
"invalid token, please log in again": "Ongeldige token, log opnieuw in.",
|
"invalid token, please log in again": "Ongeldige token, log opnieuw in.",
|
||||||
"invalid token, please request a new token": "Ongeldige token, log opnieuw in.",
|
"invalid token, please request a new token": "Ongeldige token, log opnieuw in.",
|
||||||
"new email must be different than curent email": "Het nieuwe email adres dient te verschillen van het oude",
|
"new email must be different than current email": "Het nieuwe email adres dient te verschillen van het oude",
|
||||||
"no file part": "Geen bestand opgegeven.",
|
"no file part": "Geen bestand opgegeven.",
|
||||||
"no selected file": "Geen bestand geselecteerd.",
|
"no selected file": "Geen bestand geselecteerd.",
|
||||||
"no tracks in gpx file": "Geen route (<trk>) aanwezig in het .gpx bestand.",
|
"no tracks in gpx file": "Geen route (<trk>) aanwezig in het .gpx bestand.",
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"gpx file is invalid": "Plik .gpx jest niepoprawny.",
|
"gpx file is invalid": "Plik .gpx jest niepoprawny.",
|
||||||
"invalid credentials": "Niepoprawne dane logowania.",
|
"invalid credentials": "Niepoprawne dane logowania.",
|
||||||
"invalid payload": "Przekazane dane są niepoprawne.",
|
"invalid payload": "Przekazane dane są niepoprawne.",
|
||||||
"new email must be different than curent email": "Nowy adres e-mail musi być inny niż aktualny",
|
"new email must be different than current email": "Nowy adres e-mail musi być inny niż aktualny",
|
||||||
"no file part": "Nie dostarczono pliku.",
|
"no file part": "Nie dostarczono pliku.",
|
||||||
"no selected file": "Nie wybrano pliku.",
|
"no selected file": "Nie wybrano pliku.",
|
||||||
"no tracks in gpx file": "Brak trasy (<trk>) w pliku .gpx.",
|
"no tracks in gpx file": "Brak trasy (<trk>) w pliku .gpx.",
|
||||||
|
Loading…
Reference in New Issue
Block a user