Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add login with username & password #44

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Conversation

zemljanichka
Copy link
Contributor

No description provided.

Copy link
Contributor

@timofeev41 timofeev41 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно четко разделить модельки с hashed_password, они не должны гулять в модели по коду. Пароль тут нужен чисто для авторизации

  • В Employee точно не должно быть пароля (юзернейм допустим)
  • В EmployeeWCardModel (или в Employee, смотря что решишь про пункт выше) надо бы сделать валидацию что одно из условий соответствует действительности: авторизован по карте либо по логину/паролю

src/dependencies.py Show resolved Hide resolved
src/employee/Employee.py Outdated Show resolved Hide resolved
src/routers/employee_router.py Outdated Show resolved Hide resolved
@PaTara43 PaTara43 merged commit cabc78d into refactoring Mar 27, 2024
1 check failed
@PaTara43 PaTara43 deleted the feature/login branch March 27, 2024 17:14
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.

3 participants