Skip to content

update email validation#248

Closed
sergeyafomenko-hub wants to merge 1 commit intoemail_fix_regularfrom
sergeyafomenko-hub-patch-1
Closed

update email validation#248
sergeyafomenko-hub wants to merge 1 commit intoemail_fix_regularfrom
sergeyafomenko-hub-patch-1

Conversation

@sergeyafomenko-hub
Copy link
Copy Markdown

regex email validation check

Изменения

Добавлена регулярка
исправлены ишус
#242
#244
#245
#242 | user@ — email без доменного имени проходит
#244 | user name@mail.ru — email с пробелами проходит
#245 | пользователь@почта.рф — email на кириллице проходит

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

regex email validation check
@github-actions
Copy link
Copy Markdown

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link
Copy Markdown

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
auth_backend
   __main__.py330%1–5
   base.py12467%6–9
   exceptions.py451078%24, 32, 45, 50–52, 57, 64–65, 78
auth_backend/auth_method
   base.py63986%51–61, 143, 168
   method_mixins.py32681%27, 32–34, 50, 61
   oauth.py561770%38, 44, 49–54, 58–69, 95–100
   outer.py1143867%27, 34, 41, 48, 99, 105, 109–114, 133–134, 139–140, 168–173, 186–194, 206–212
   userdata_mixin.py19668%27, 32, 37–40
auth_backend/auth_plugins
   airflow.py331652%26–37, 42–65
   authentic.py19012136%53–65, 70–83, 87–102, 106–112, 116–122, 129–131, 141–197, 204–254, 259, 264–265, 275–282, 291–317, 321–326, 331–341, 346–359
   coder.py321650%25–34, 39–52
   email.py25416435%35–36, 65–68, 127–157, 166–177, 181–185, 195–249, 255–256, 261, 265–295, 305–355, 361–407, 416–452, 460–518, 526–554, 560–562
   github.py1046339%57–116, 130–174, 184, 189, 195–207
   google.py1126443%65–124, 138–166, 176, 182–186, 190–195, 199–208
   keycloak.py1046240%53–115, 125–175, 185, 190, 196–201
   lkmsu.py16411232%60–113, 131–169, 179–201, 206, 211, 217–227, 231–245, 249–278, 282–291
   mailu.py341847%25–34, 39–54
   postgres.py432053%29–35, 40–46, 51–63
   telegram.py1035448%58–85, 100–118, 131, 139, 147–167, 172–186
   vk.py1288236%71–123, 137–175, 185, 190, 196–213, 220–246
   yandex.py1278335%58–128, 141–179, 190, 196, 202–228
auth_backend/cli
   group.py13130%1–17
   process.py56560%1–72
   scope.py11110%1–20
   user.py20200%1–40
   user_group.py12120%1–25
auth_backend/kafka
   kafka.py502354%30–33, 42–44, 56–59, 72–82, 85, 90, 93, 102–104
   kafkameta.py9278%8, 12
auth_backend/models
   base.py832767%28–31, 79, 95–119
   db.py1463377%53, 57, 63–66, 70, 74–78, 82, 119–123, 127–129, 210–221, 225, 232
   dynamic_settings.py27774%24–31
auth_backend/routes
   base.py28293%21–22
   exc_handlers.py43881%31, 38, 45, 56, 69, 83, 95, 117
   groups.py841187%32, 34, 59–60, 66, 85, 97–99, 135, 137
   oidc.py34294%94, 104
   scopes.py361753%23–33, 43, 53–54, 66–71, 81–84
   user.py954355%53, 55, 57–66, 72–78, 90–110, 151, 161, 165–186
   user_session.py845238%40–42, 55–91, 99, 113–123, 131–139, 147–165, 176–191
auth_backend/schemas
   models.py100397%150–152
auth_backend/schemas/types
   scopes.py241154%30–32, 36–43
auth_backend/utils
   jwt.py57788%35–42
   oidc_token.py371657%26, 35–63, 74
   security.py46883%38–41, 51, 56, 60, 63, 66
   smtp.py774443%25–29, 34–45, 50–61, 66–79, 83–85, 101–120, 140–141
   string.py7186%12
   user_session_control.py412441%32–56, 70–74, 79–80
TOTAL3116142154% 

Summary

Tests Skipped Failures Errors Time
72 6 💤 10 ❌ 30 🔥 28.819s ⏱️

@sergeyafomenko-hub sergeyafomenko-hub deleted the sergeyafomenko-hub-patch-1 branch April 13, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant