square-authentication 10.0.0__tar.gz → 10.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {square_authentication-10.0.0 → square_authentication-10.0.1}/PKG-INFO +1 -1
  2. {square_authentication-10.0.0 → square_authentication-10.0.1}/setup.py +1 -1
  3. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/routes/core.py +11 -0
  4. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication.egg-info/PKG-INFO +1 -1
  5. {square_authentication-10.0.0 → square_authentication-10.0.1}/LICENSE +0 -0
  6. {square_authentication-10.0.0 → square_authentication-10.0.1}/README.md +0 -0
  7. {square_authentication-10.0.0 → square_authentication-10.0.1}/pyproject.toml +0 -0
  8. {square_authentication-10.0.0 → square_authentication-10.0.1}/setup.cfg +0 -0
  9. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/__init__.py +0 -0
  10. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/configuration.py +0 -0
  11. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/data/config.sample.ini +0 -0
  12. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/data/config.testing.sample.ini +0 -0
  13. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/main.py +0 -0
  14. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/messages.py +0 -0
  15. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/pydantic_models/__init__.py +0 -0
  16. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/pydantic_models/core.py +0 -0
  17. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/pydantic_models/profile.py +0 -0
  18. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/routes/__init__.py +0 -0
  19. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/routes/profile.py +0 -0
  20. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/routes/utility.py +0 -0
  21. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/utils/__init__.py +0 -0
  22. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/utils/core.py +0 -0
  23. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/utils/encryption.py +0 -0
  24. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication/utils/token.py +0 -0
  25. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication.egg-info/SOURCES.txt +0 -0
  26. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication.egg-info/dependency_links.txt +0 -0
  27. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication.egg-info/requires.txt +0 -0
  28. {square_authentication-10.0.0 → square_authentication-10.0.1}/square_authentication.egg-info/top_level.txt +0 -0
  29. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_1.py +0 -0
  30. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_authentication.py +0 -0
  31. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_delete_user.py +0 -0
  32. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_email_verification.py +0 -0
  33. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_login.py +0 -0
  34. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_profile_management.py +0 -0
  35. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_token_management.py +0 -0
  36. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_update_profile.py +0 -0
  37. {square_authentication-10.0.0 → square_authentication-10.0.1}/tests/test_username.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 10.0.0
3
+ Version: 10.0.1
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: Parth Mukesh Mangtani
@@ -4,7 +4,7 @@ package_name = "square_authentication"
4
4
 
5
5
  setup(
6
6
  name=package_name,
7
- version="10.0.0",
7
+ version="10.0.1",
8
8
  packages=find_packages(),
9
9
  package_data={
10
10
  package_name: ["data/*"],
@@ -682,6 +682,16 @@ async def get_user_details_v0(
682
682
  """
683
683
  main process
684
684
  """
685
+ local_list_user = global_object_square_database_helper.get_rows_v0(
686
+ database_name=global_string_database_name,
687
+ schema_name=global_string_schema_name,
688
+ table_name=User.__tablename__,
689
+ filters=FiltersV0(
690
+ root={
691
+ User.user_id.name: FilterConditionsV0(eq=user_id),
692
+ }
693
+ ),
694
+ )["data"]["main"]
685
695
  local_list_app = global_object_square_database_helper.get_rows_v0(
686
696
  database_name=global_string_database_name,
687
697
  schema_name=global_string_public_schema_name,
@@ -729,6 +739,7 @@ async def get_user_details_v0(
729
739
  """
730
740
  return_this = {
731
741
  "user_id": user_id,
742
+ "username": local_list_user[0][User.user_username.name],
732
743
  "profile": user_profile,
733
744
  "apps": [
734
745
  y[App.app_name.name]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: square_authentication
3
- Version: 10.0.0
3
+ Version: 10.0.1
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: Parth Mukesh Mangtani