Untitled
unknown
plain_text
a year ago
560 B
0
Indexable
Never
result = login.object.get(username=username, password=password) if result.exists(): res = login.objects.filter(username=username, password=password) if res.user_type == "user": return HttpResponse('''<script>alert("login successfully");window.location="/myapp/home/"<script>''') else: return HttpResponse('''<script>alert("user not found");window.location="/myapp/login/"<script>''') else: return HttpResponse('''<script>alert("invalid user");window.location"/myapp/login/"<script>''')