Skip to content

Commit

Permalink
Merge pull request #84 from mayureshagashe2105/prod
Browse files Browse the repository at this point in the history
Fix unhashed passwords bug
  • Loading branch information
mayureshagashe2105 authored Feb 25, 2023
2 parents 92a2a13 + d5694a9 commit 043fa74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions API/fwapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ def scoped_checks(user_creds: UserOut):
raise AuthorizationFailedException(response_result, "not authorized")

scoped_checks(user_creds)








signup(response_result, data)
return response_result
Expand Down
2 changes: 1 addition & 1 deletion API/services/AuthServices.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def signup(response_result: FrontendResponseModel, data: Union[UserAuth,BulkSign

else:
AADHAR_NOS=data.AADHAR_NOS
passwords=data.passwords
passwords=[Auth.get_password_hash(passwd) for passwd in data.passwords]
village_name=data.village_name

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

0 comments on commit 043fa74

Please sign in to comment.