Skip to content

Commit

Permalink
fix: typo in security folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Valbou committed Nov 13, 2023
1 parent 356dedc commit a1daa6e
Show file tree
Hide file tree
Showing 35 changed files with 38 additions and 37 deletions.
1 change: 1 addition & 0 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ As vTaskr is an non profit project without fulltime dev, no release date can be
- [x] Add filters on list endpoints (filter groups according to role or filter rights according to a group etc...)

## Go to v1.2.0
- [ ] Add a dev documentation
- [ ] Add Keycloak integration
- [ ] Grouping tasks in todolists
- [ ] Transform a todolist into a template to reuse it.
Expand Down
2 changes: 1 addition & 1 deletion build/lib/base/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from src.libs.secutity.utils import file_to_base64
from src.libs.security.utils import file_to_base64

APP_NAME = "vtaskr"
VERSION = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion build/lib/tasks/models/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pytz import utc

from src.colors.models.color import Color
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion build/lib/tasks/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id

from .tag import Tag

Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/hmi/flask/api/v1/change_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask import current_app, g, request
from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import get_valid_email
from src.libs.security.validators import get_valid_email
from src.users.hmi.flask.decorators import login_required
from src.users.hmi.flask.emails import ChangeEmailToNewEmail, ChangeEmailToOldEmail
from src.users.services import EmailAlreadyUsedError, UserService
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/hmi/flask/api/v1/change_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import current_app, request
from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import PasswordComplexityError
from src.libs.security.validators import PasswordComplexityError
from src.users.hmi.flask.emails import ChangePasswordEmail
from src.users.services import UserService

Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/hmi/flask/api/v1/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict
from src.libs.redis import rate_limited
from src.libs.secutity.validators import PasswordComplexityError
from src.libs.security.validators import PasswordComplexityError
from src.users.hmi.dto.user import UserDTO, UserMapperDTO
from src.users.hmi.flask.emails import RegisterEmail
from src.users.services import UserService
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions build/lib/users/models/request_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pytz import utc

from src.base.config import REQUEST_DAYS_HISTORY, REQUEST_VALIDITY
from src.libs.secutity.utils import get_2FA, get_id, hash_str
from src.libs.secutity.validators import get_valid_email
from src.libs.security.utils import get_2FA, get_id, hash_str
from src.libs.security.validators import get_valid_email


class RequestType(Enum):
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/models/right.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.libs.iam.constants import Permissions, Resources
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/models/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.colors.models.color import Color
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/models/role_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/models/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.base.config import TOKEN_TEMP_VALIDITY, TOKEN_VALIDITY
from src.libs.secutity.utils import get_2FA, get_id, get_token
from src.libs.security.utils import get_2FA, get_id, get_token


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions build/lib/users/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pytz import utc

from src.base.config import LOCALE, TIMEZONE, UNUSED_ACCOUNT_DELAY
from src.libs.secutity.utils import check_password, get_id, hash_from_password
from src.libs.secutity.validators import PasswordChecker, get_valid_email
from src.libs.security.utils import check_password, get_id, hash_from_password
from src.libs.security.validators import PasswordChecker, get_valid_email


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "vtaskr"
authors = [
{name = "Valentin BOUVAREL", email = "[email protected]"},
{name = "Valentin B", email = "[email protected]"},
]
description = "An open-source to do list application"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/base/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from src.libs.secutity.utils import file_to_base64
from src.libs.security.utils import file_to_base64

APP_NAME = "vtaskr"
VERSION = "1.1.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tasks/models/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pytz import utc

from src.colors.models.color import Color
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/models/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id

from .tag import Tag

Expand Down
2 changes: 1 addition & 1 deletion src/users/hmi/flask/api/v1/change_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask import current_app, g, request
from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import get_valid_email
from src.libs.security.validators import get_valid_email
from src.users.hmi.flask.decorators import login_required
from src.users.hmi.flask.emails import ChangeEmailToNewEmail, ChangeEmailToOldEmail
from src.users.services import EmailAlreadyUsedError, UserService
Expand Down
2 changes: 1 addition & 1 deletion src/users/hmi/flask/api/v1/change_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import current_app, request
from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import PasswordComplexityError
from src.libs.security.validators import PasswordComplexityError
from src.users.hmi.flask.emails import ChangePasswordEmail
from src.users.services import UserService

Expand Down
2 changes: 1 addition & 1 deletion src/users/hmi/flask/api/v1/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict
from src.libs.redis import rate_limited
from src.libs.secutity.validators import PasswordComplexityError
from src.libs.security.validators import PasswordComplexityError
from src.users.hmi.dto.user import UserDTO, UserMapperDTO
from src.users.hmi.flask.emails import RegisterEmail
from src.users.services import UserService
Expand Down
2 changes: 1 addition & 1 deletion src/users/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions src/users/models/request_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pytz import utc

from src.base.config import REQUEST_DAYS_HISTORY, REQUEST_VALIDITY
from src.libs.secutity.utils import get_2FA, get_id, hash_str
from src.libs.secutity.validators import get_valid_email
from src.libs.security.utils import get_2FA, get_id, hash_str
from src.libs.security.validators import get_valid_email


class RequestType(Enum):
Expand Down
2 changes: 1 addition & 1 deletion src/users/models/right.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.libs.iam.constants import Permissions, Resources
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/users/models/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.colors.models.color import Color
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/users/models/role_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from pytz import utc

from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/users/models/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pytz import utc

from src.base.config import TOKEN_TEMP_VALIDITY, TOKEN_VALIDITY
from src.libs.secutity.utils import get_2FA, get_id, get_token
from src.libs.security.utils import get_2FA, get_id, get_token


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions src/users/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from pytz import utc

from src.base.config import LOCALE, TIMEZONE, UNUSED_ACCOUNT_DELAY
from src.libs.secutity.utils import check_password, get_id, hash_from_password
from src.libs.secutity.validators import PasswordChecker, get_valid_email
from src.libs.security.utils import check_password, get_id, hash_from_password
from src.libs.security.validators import PasswordChecker, get_valid_email


@dataclass
Expand Down
6 changes: 3 additions & 3 deletions src/vtaskr.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ src/libs/redis/__init__.py
src/libs/redis/database.py
src/libs/redis/flask_utils.py
src/libs/redis/ratelimit.py
src/libs/secutity/__init__.py
src/libs/secutity/utils.py
src/libs/secutity/validators.py
src/libs/security/__init__.py
src/libs/security/utils.py
src/libs/security/validators.py
src/libs/sqlalchemy/__init__.py
src/libs/sqlalchemy/base.py
src/libs/sqlalchemy/database.py
Expand Down
2 changes: 1 addition & 1 deletion tests/libs/security/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import TestCase

from src.libs.secutity.utils import file_to_base64
from src.libs.security.utils import file_to_base64


class TestFileBase64(TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/libs/security/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from email_validator import EmailSyntaxError

from src.libs.secutity.validators import (
from src.libs.security.validators import (
PasswordChecker,
PasswordComplexityError,
get_valid_email,
Expand Down
2 changes: 1 addition & 1 deletion tests/users/models/test_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pytz import utc

from src.base.config import TOKEN_TEMP_VALIDITY, TOKEN_VALIDITY
from src.libs.secutity.utils import get_id
from src.libs.security.utils import get_id
from src.users import Token


Expand Down

0 comments on commit a1daa6e

Please sign in to comment.