|
|||
|
I am attempting to login users in using an auth login. My code is firing and authenticating the user, but when I attemt to send a response back to the chat app via Response.Write I get "Unknown error".
I'm not exactly sure what is going wrong since the error is so cryptic, and .net examples seem to be quite sparse. I am including code for the auto login. userlogon is a sitewide object that handles login routines and is working correctly. It just doesn't seem to like the way I am returning the response code. protected void Page_Load(object sender, EventArgs e) { String un = this.Request.QueryString["username"]; String pw = this.Request.QueryString["password"]; Int16 loginSuccess = 0; Int16 loginError = 3; if (!String.IsNullOrEmpty(un) && !String.IsNullOrEmpty(pw)) { Boolean blnLogonSuccess = false; userLogon userlogon = new userLogon(); blnLogonSuccess = userlogon.verifyLogon(un, pw); if (blnLogonSuccess) { Response.Write(loginSuccess); return; } else { Response.Write(loginError); } } else { Response.Write(loginError); } } Thanks, |
|
|||
|
I did some more work on this and got rid of the unknown error whick was being caused by a redirect I didn't know about.
However I am now getting the following error: Login error: format error of the auth-url response The response is being explicitly set to utf-8, and to diagnose, I am doing nothing on the login script but Response.Write(0); |
|
|||
|
The "format error of the auth-url response " happens mainly because of the wrong format.
We just reveive the following pure number:0,1,2,3,4,5,6,7 and they mean: 0 - login successfully; 1 - wrong password; 2 - the username can't be used; 3 - login error, e.g. error in connecting database; 4 - username does not exist; 5 - successfully log in as an administrator; 6 - guest login is not allowed 7 - username is banned Other extra return value or other signals will cause the format error.I suggest that you check your return value. And you may check the integration details here:Integrate External Database |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|