login

How to programmatically log into a website?

橙三吉。 提交于 2020-01-25 21:17:28
问题 I have looked at multiple examples on stackoverflow and cannot get it to work. This is the url I need to log into programmtically: http://powerschool.fortschools.org/public/ I have tried many different ways but am unsuccessfully. Heres what I have currently: Original Url before logging in: http://powerschool.fortschools.org/public/ Url after logging in: http://powerschool.fortschools.org/guardian/home.html Form I think is submitted before login: <form action="/guardian/home.html" method="post

IIS hosted website - login works first time. Then fails. No error message

岁酱吖の 提交于 2020-01-25 18:49:24
问题 We have a aspnet web application that works fine locally. No issues at all. When published to IIS 7.5 the site loads up, lets me login in and works perfectly. I can login using my own and any other account that is registered. Problem is - when I close the browser down and then reopen and login again it does nothing. No error message from IIS, no 'invalid attempt' from the login controls. Nothing. If I attempt to login with a made up username and password I get the error I expect from the

Wordpress login system

社会主义新天地 提交于 2020-01-25 12:49:10
问题 I'm new in the WordPress. I'm creating template in WordPress using PHP.I would like to know how to integrate my own login page( which contain two boxes i.e, user name & password ) with WordPress login system. Please anyone give a solution. Thanks in advance. 回答1: If you are building your own theme, you can add a login area to your theme. If you would rather use a plugin, there are several plugins which let you add a login area, such as Sidebar Login and BM Custom Login. 回答2: Have you

Error: Value Fatal of type java.lang.String cannot be converted to JSONObject

被刻印的时光 ゝ 提交于 2020-01-25 11:09:05
问题 In Android, I want to implement a login system and I'm having an error in converting a String into a JsonObject . This is my Activity: public class Login extends Activity implements OnClickListener { private EditText user, pass; private Button mSubmit; private ProgressDialog pDialog; static { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); } JSONParser jsonParser = new JSONParser(); private static final String

Django Login/Session Not Sticking

大憨熊 提交于 2020-01-25 10:30:09
问题 After my site has been up and running for a while in production, I suddenly have a problem with my users loging into it. I have protected certain views/pages with the login_required decorator and I am also using the django admin. When an anonymous user hits any of these pages, he is redirected to the login page. When this anonymous user adds its credentials, the POST request is successful and he is redirected to the inital page. At the same time, the user gets a new sessionid (as expected)

django drf login template

喜夏-厌秋 提交于 2020-01-25 08:12:08
问题 I extend the login template of DRF {% extends "rest_framework/login_base.html" %} {% block branding %} <h3 style="margin: 0 0 20px;">My site</h3> {% endblock %} with urls.py: urlpatterns = [ url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')), url(r'^login', login, template_name, name='login'), url(r'^logout', logout, template_name, name='logout'), ... Everything works well except if the connection fails: DRF redirect to http://127.0.0.1:8000/api-auth/login/ instead

Wordpress - Protect page by login

柔情痞子 提交于 2020-01-25 05:05:55
问题 I've a site and I would create a simply "Members only" page. I would add a protection to a page content so only editors and administrators can access. This page should be visible to all users, but when a guest click on it, the page content is protected by username/password. When user fill these fields, the page automatically redirect to protect content. Is there a plugin, or method, that I can consider? 回答1: There probely is some plugin for this kind of stuff, i mostly build my own themes,

VB.Net Error 403 in HTTP Web Requests

徘徊边缘 提交于 2020-01-24 23:20:50
问题 while using HTTP web Requests, when i try and read the stream i always get an error saying 403 Forbidden but if i try to do it in the VB.Net web browser it works fine. Here is my code: Imports System.Net Imports System.Text Imports System.IO Public Class Form2 Dim logincookie As CookieContainer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim postData As String = "test=test&username=test&password=test&next=test.html" Dim

What am I doing wrong in my JSON Post?

二次信任 提交于 2020-01-24 21:13:30
问题 I have to fill a model with data that comes from a Restful API. In my code I'm deserializing my JSON this way: func DoLogin(_ user:String, _ psw:String) { let url = URL(string: "http://162.209.99.39:8080/MiClaroBackend/auth") let session = URLSession.shared let request = NSMutableURLRequest(url: url!) request.httpMethod = "POST" let paramToSend = "username=" + user + "&password=" + psw request.httpBody = paramToSend.data(using: String.Encoding.utf8) let task = session.dataTask(with: request

What am I doing wrong in my JSON Post?

≡放荡痞女 提交于 2020-01-24 21:12:43
问题 I have to fill a model with data that comes from a Restful API. In my code I'm deserializing my JSON this way: func DoLogin(_ user:String, _ psw:String) { let url = URL(string: "http://162.209.99.39:8080/MiClaroBackend/auth") let session = URLSession.shared let request = NSMutableURLRequest(url: url!) request.httpMethod = "POST" let paramToSend = "username=" + user + "&password=" + psw request.httpBody = paramToSend.data(using: String.Encoding.utf8) let task = session.dataTask(with: request