Skip to content

Commit 043fa74

Browse files
Merge pull request #84 from mayureshagashe2105/prod
Fix unhashed passwords bug
2 parents 92a2a13 + d5694a9 commit 043fa74

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

API/fwapp.py

-7
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,6 @@ def scoped_checks(user_creds: UserOut):
175175
raise AuthorizationFailedException(response_result, "not authorized")
176176

177177
scoped_checks(user_creds)
178-
179-
180-
181-
182-
183-
184-
185178

186179
signup(response_result, data)
187180
return response_result

API/services/AuthServices.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def signup(response_result: FrontendResponseModel, data: Union[UserAuth,BulkSign
4444

4545
else:
4646
AADHAR_NOS=data.AADHAR_NOS
47-
passwords=data.passwords
47+
passwords=[Auth.get_password_hash(passwd) for passwd in data.passwords]
4848
village_name=data.village_name
4949

5050
users=DBQueries.filtered_db_search("Auth","user",["_id","password","village_name"],AADHAR={"$in":AADHAR_NOS})

0 commit comments

Comments
 (0)