mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-04 22:40:30 +00:00
Update email-validator
This commit is contained in:
parent
68289c6a2c
commit
3723a50b94
3 changed files with 16 additions and 16 deletions
|
@ -11,7 +11,7 @@ from advlabdb.models import MAX_YEAR, MIN_YEAR, Admin, Semester, db
|
|||
class EmailParamType(click.ParamType):
|
||||
def convert(self, value, param, ctx):
|
||||
try:
|
||||
return validate_email(value).email
|
||||
return validate_email(value).normalized
|
||||
except Exception:
|
||||
self.fail(f"{value} is not a valid email!", param, ctx)
|
||||
|
||||
|
|
28
poetry.lock
generated
28
poetry.lock
generated
|
@ -21,13 +21,13 @@ tz = ["python-dateutil"]
|
|||
|
||||
[[package]]
|
||||
name = "blinker"
|
||||
version = "1.6.3"
|
||||
version = "1.7.0"
|
||||
description = "Fast, simple object-to-object and broadcast signaling"
|
||||
optional = false
|
||||
python-versions = ">=3.7"
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "blinker-1.6.3-py3-none-any.whl", hash = "sha256:296320d6c28b006eb5e32d4712202dbcdcbf5dc482da298c2f44881c43884aaa"},
|
||||
{file = "blinker-1.6.3.tar.gz", hash = "sha256:152090d27c1c5c722ee7e48504b02d76502811ce02e1523553b4cf8c8b3d3a8d"},
|
||||
{file = "blinker-1.7.0-py3-none-any.whl", hash = "sha256:c3f865d4d54db7abc53758a01601cf343fe55b84c1de4e3fa910e420b438d5b9"},
|
||||
{file = "blinker-1.7.0.tar.gz", hash = "sha256:e6820ff6fa4e4d1d8e2747c2283749c3f547e4fee112b98555cdcdae32996182"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -224,17 +224,17 @@ wmi = ["wmi (>=1.5.1,<2.0.0)"]
|
|||
|
||||
[[package]]
|
||||
name = "email-validator"
|
||||
version = "1.3.1"
|
||||
version = "2.1.0.post1"
|
||||
description = "A robust email address syntax and deliverability validation library."
|
||||
optional = false
|
||||
python-versions = ">=3.5"
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "email_validator-1.3.1-py2.py3-none-any.whl", hash = "sha256:49a72f5fa6ed26be1c964f0567d931d10bf3fdeeacdf97bc26ef1cd2a44e0bda"},
|
||||
{file = "email_validator-1.3.1.tar.gz", hash = "sha256:d178c5c6fa6c6824e9b04f199cf23e79ac15756786573c190d2ad13089411ad2"},
|
||||
{file = "email_validator-2.1.0.post1-py3-none-any.whl", hash = "sha256:c973053efbeddfef924dc0bd93f6e77a1ea7ee0fce935aea7103c7a3d6d2d637"},
|
||||
{file = "email_validator-2.1.0.post1.tar.gz", hash = "sha256:a4b0bd1cf55f073b924258d19321b1f3aa74b4b5a71a42c305575dba920e1a44"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
dnspython = ">=1.15.0"
|
||||
dnspython = ">=2.0.0"
|
||||
idna = ">=2.0.0"
|
||||
|
||||
[[package]]
|
||||
|
@ -325,17 +325,17 @@ Flask = "*"
|
|||
|
||||
[[package]]
|
||||
name = "flask-security-too"
|
||||
version = "5.3.1"
|
||||
version = "5.3.2"
|
||||
description = "Quickly add security features to your Flask application."
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "Flask-Security-Too-5.3.1.tar.gz", hash = "sha256:1dafe00c611ce3811e7fe1686ecd7750938806a1ec3c5a278185f31958895d3c"},
|
||||
{file = "Flask_Security_Too-5.3.1-py3-none-any.whl", hash = "sha256:159ed080dce4a717c2852eac50443221f50b391f5af6f03c82febc3740d572d1"},
|
||||
{file = "Flask-Security-Too-5.3.2.tar.gz", hash = "sha256:c0b5075df0d64a9ef35b04c88d31fbf405a59243736f6d6d0a1a4b4845abf3e5"},
|
||||
{file = "Flask_Security_Too-5.3.2-py3-none-any.whl", hash = "sha256:eb6b56c6e1d108a11a1a86dcb17dd97e596c027b68a73f0acc9fc7f433c441a6"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
email-validator = ">=1.1.1"
|
||||
email-validator = ">=2.0.0"
|
||||
Flask = ">=2.3.2"
|
||||
Flask-Login = ">=0.6.2"
|
||||
Flask-Principal = ">=0.4.0"
|
||||
|
@ -1134,4 +1134,4 @@ email = ["email-validator"]
|
|||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.11"
|
||||
content-hash = "e21cdc3b5d6a838558d704b3b01d854b501dfc2a3f36db83536eef29061b5d5b"
|
||||
content-hash = "3811fd62ac335bf15caa501923f9bb0824758248d180df77d772ffdea4b97f30"
|
||||
|
|
|
@ -8,7 +8,7 @@ readme = "README.md"
|
|||
[tool.poetry.dependencies]
|
||||
python = "^3.11"
|
||||
click = "^8.1"
|
||||
email-validator = "^1.3"
|
||||
email-validator = "^2.1"
|
||||
flask = "^2.2"
|
||||
flask-admin = "^1.6"
|
||||
flask-login = "^0.6"
|
||||
|
|
Loading…
Reference in a new issue