Skip to content

Commit

Permalink
another codeql test
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Feb 13, 2024
1 parent 2abc7bc commit 81cc9d0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions langchain_weaviate/foo.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,30 @@ def area(r):
# if DEBUG:
# print("Computing area of %r" % r)
return r.length * r.width


CONFIG_FILE = "foo.txt"


def process_request(request):
password = request.GET["password"]

# BAD: Inbound authentication made by comparison to string literal
if password == "myPa55word":
redirect("login")

hashed_password = load_from_config("hashed_password", CONFIG_FILE)
salt = load_from_config("salt", CONFIG_FILE)

print("Hashed password: %r" % hashed_password)
print("Salt: %r" % salt)


def redirect(url):
# TODO: Implement redirect logic
pass


def load_from_config(key, config_file):
# TODO: Implement loading from config logic
pass

0 comments on commit 81cc9d0

Please sign in to comment.