square-authentication 5.1.2__tar.gz → 5.1.3__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 (22) hide show
  1. {square_authentication-5.1.2 → square_authentication-5.1.3}/PKG-INFO +5 -1
  2. {square_authentication-5.1.2 → square_authentication-5.1.3}/README.md +4 -0
  3. {square_authentication-5.1.2 → square_authentication-5.1.3}/setup.py +1 -1
  4. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/routes/core.py +15 -2
  5. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication.egg-info/PKG-INFO +5 -1
  6. {square_authentication-5.1.2 → square_authentication-5.1.3}/setup.cfg +0 -0
  7. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/__init__.py +0 -0
  8. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/configuration.py +0 -0
  9. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/data/config.ini +0 -0
  10. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/main.py +0 -0
  11. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/messages.py +0 -0
  12. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/pydantic_models/__init__.py +0 -0
  13. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/pydantic_models/core.py +0 -0
  14. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/routes/__init__.py +0 -0
  15. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/routes/utility.py +0 -0
  16. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/utils/__init__.py +0 -0
  17. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/utils/encryption.py +0 -0
  18. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication/utils/token.py +0 -0
  19. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication.egg-info/SOURCES.txt +0 -0
  20. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication.egg-info/dependency_links.txt +0 -0
  21. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication.egg-info/requires.txt +0 -0
  22. {square_authentication-5.1.2 → square_authentication-5.1.3}/square_authentication.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square_authentication
3
- Version: 5.1.2
3
+ Version: 5.1.3
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -32,6 +32,10 @@ pip install square_authentication
32
32
 
33
33
  ## changelog
34
34
 
35
+ ### v5.1.3
36
+
37
+ - bugfix in login_username/v0 (getting creds from correct table).
38
+
35
39
  ### v5.1.2
36
40
 
37
41
  - bump square_database_structure>=2.3.1.
@@ -16,6 +16,10 @@ pip install square_authentication
16
16
 
17
17
  ## changelog
18
18
 
19
+ ### v5.1.3
20
+
21
+ - bugfix in login_username/v0 (getting creds from correct table).
22
+
19
23
  ### v5.1.2
20
24
 
21
25
  - bump square_database_structure>=2.3.1.
@@ -4,7 +4,7 @@ package_name = "square_authentication"
4
4
 
5
5
  setup(
6
6
  name=package_name,
7
- version="5.1.2",
7
+ version="5.1.3",
8
8
  packages=find_packages(),
9
9
  package_data={
10
10
  package_name: ["data/*"],
@@ -74,9 +74,8 @@ async def register_username_v0(
74
74
  """
75
75
  validation
76
76
  """
77
-
78
77
  # validation for username
79
- local_list_response_user_creds = (
78
+ local_list_response_user_profile = (
80
79
  global_object_square_database_helper.get_rows_v0(
81
80
  database_name=global_string_database_name,
82
81
  schema_name=global_string_schema_name,
@@ -90,6 +89,20 @@ async def register_username_v0(
90
89
  ),
91
90
  )["data"]["main"]
92
91
  )
92
+ local_list_response_user_creds = (
93
+ global_object_square_database_helper.get_rows_v0(
94
+ database_name=global_string_database_name,
95
+ schema_name=global_string_schema_name,
96
+ table_name=UserCredential.__tablename__,
97
+ filters=FiltersV0(
98
+ root={
99
+ UserCredential.user_id.name: FilterConditionsV0(
100
+ eq=local_list_response_user_profile[0][UserProfile.user_id.name]
101
+ )
102
+ }
103
+ ),
104
+ )["data"]["main"]
105
+ )
93
106
  if len(local_list_response_user_creds) > 0:
94
107
  output_content = get_api_output_in_standard_format(
95
108
  message=messages["USERNAME_ALREADY_EXISTS"],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: square-authentication
3
- Version: 5.1.2
3
+ Version: 5.1.3
4
4
  Summary: authentication layer for my personal server.
5
5
  Home-page: https://github.com/thepmsquare/square_authentication
6
6
  Author: thePmSquare
@@ -32,6 +32,10 @@ pip install square_authentication
32
32
 
33
33
  ## changelog
34
34
 
35
+ ### v5.1.3
36
+
37
+ - bugfix in login_username/v0 (getting creds from correct table).
38
+
35
39
  ### v5.1.2
36
40
 
37
41
  - bump square_database_structure>=2.3.1.