mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 12:39:28 +00:00
Tasks 1.1, 5.1, 5.2, 5.4 and the data half of 5.3. - mechanisms.toml: closed vocabulary v1 (20 ids) every expected row cites. - vibe-py: 35 Real-Vuln-Benchmark pairs (Apache-2.0), human provenance only because the LLM-generated repositories carry no license (escalated). - vfc-js: 17 Node fix-commit pairs harvested upstream (MIT/Apache-2.0), SecBench.js itself is not vendored (no license); sinks derived on 13/17. - agent-vfc: 29 agent-trailer fixes as catalog-candidates.toml plus REVIEW.md; the loaded catalog stays empty until a human reviews them. - datasets.toml and README document every slice and its review status. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7XD7x5KonMdmGRkp63EQG
26 lines
946 B
Python
26 lines
946 B
Python
# Provenance: Contrast-Security-OSS/DjanGoat reset_password (fixed).
|
|
# repo: Contrast-Security-OSS/DjanGoat
|
|
# commit: 082c88bfefced508ae083b92b459c808f95e905e
|
|
# parent: 082c88bfefced508ae083b92b459c808f95e905e
|
|
# commit_url: https://github.com/Contrast-Security-OSS/DjanGoat/blob/082c88bfefced508ae083b92b459c808f95e905e/app/views/password_resets/views.py#L84
|
|
# cve:
|
|
# license: MIT
|
|
# function: reset_password
|
|
# relpath: app/views/password_resets/views.py
|
|
# provenance: human
|
|
# mechanism: source_reaches_sink
|
|
|
|
def forgot_password(request):
|
|
qset = User.objects.filter(email=request.POST.get('email', ''))
|
|
if len(qset) > 0:
|
|
user = qset.first()
|
|
messages.success(request, 'An email was sent to reset your password!')
|
|
password_reset_mailer(request, user)
|
|
else:
|
|
try:
|
|
messages.error(request, 'We do not have the email in our system')
|
|
except:
|
|
pass
|
|
|
|
return redirect('/login')
|