Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-01-2008, 01:24 AM
Junior Member
 
Join Date: Oct 2008
Posts: 2
Default auth-url with asp.NET

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,
  #2 (permalink)  
Old 11-06-2008, 11:55 PM
Junior Member
 
Join Date: Oct 2008
Posts: 2
Default Re: auth-url with asp.NET

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);
  #3 (permalink)  
Old 01-09-2009, 07:25 AM
Member
 
Join Date: Feb 2008
Posts: 85
Default

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
Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:15 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.