Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 17:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Database Wont Save Password

Discussion on [Help] Database Wont Save Password within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2005
Posts: 157
Received Thanks: 14
[Help] Database Wont Save Password

help i got a problem my database wont save password.... so even if they create an acc.... they can log in with any random password at anytime? any way to solve this problem?
vietkidd510 is offline  
Old 10/01/2008, 03:16   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by vietkidd510 View Post
help i got a problem my database wont save password.... so even if they create an acc.... they can log in with any random password at anytime? any way to solve this problem?
If you're using LOTF it saves the password... It just saves the encrypted version of the password, which you probably won't be able to decrypt, unless you crack the algorithm yourself.(No one who has it will give it to you.)
tao4229 is offline  
Old 10/02/2008, 12:52   #3
 
elite*gold: 0
Join Date: Jul 2005
Posts: 157
Received Thanks: 14
reply

im not saying that it saves or i want to decrypt im saying that it does not save at all!!!!!... if they create an account and they login with 123456789 then they relog and login again with 4564456 it will work...it wont save into my mysql DB
vietkidd510 is offline  
Old 10/02/2008, 12:57   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Do this:
Create an new account in ur database,remember to leave the password blank.
Now,login with that acc,set the password to whatever. Now,go into ur database (mysql / phpmyadmin , doesnt matter ) ,then go into the account ur just created,and see,is there any password at the password field,or is it blank?


edit:

if its blank,do this:

Search for :

Quote:
public static byte Auth
Will bring you into database.cs.

Okay,now, mark from public static byte Auth....... ,to

Quote:
catch (Exception Exc) { General.WriteLine(Exc.ToString()); return 0; }

Now,what you have marked,delete that and input this:

Quote:
public static byte Authenticate(string UserName, string Password)
{
try
{
MySqlDataAdapter DataAdapter = null;
DataAdapter = new MySqlDataAdapter("SELECT * FROM `Accounts` WHERE `AccountID` = '" + UserName + "'", Connection);
DataSet DSet = new DataSet();

DataAdapter.Fill(DSet, "Account");

if (DSet != null && DSet.Tables["Account"].Rows.Count > 0)
//if (DSet.Tables["Account"].Rows.Count > 0)
{
DataRow DR = DSet.Tables["Account"].Rows[0];

string Pass = (string)DR["Password"];
if (Pass == Password || Pass == "")
{
if (Pass == "")
{
MySqlCommand Command = new MySqlCommand("UPDATE `Accounts` SET `Password` = '" + Password + "' WHERE `AccountID` = '" + UserName + "'", Connection);
Command.ExecuteNonQuery();
}

uint LogonCount = (uint)DR["LogonCount"];
LogonCount++;

MySqlCommand Comm = new MySqlCommand("UPDATE `Accounts` SET `LogonCount` = " + LogonCount + " WHERE `AccountID` = '" + UserName + "'", Connection);
Comm.ExecuteNonQuery();

return Convert.ToByte((uint)DR["LogonType"]);
}
else
return 0;
}
else
return 0;
}
catch (Exception Exc) { General.WriteLine(Exc.ToString()); return 0; }



Now,if any error comes up,its something with the brackets,just play around with them..

I think this COULD be the problem,if this doesnt fix it,then im not sure what would.


Emme
_Emme_ is offline  
Reply


Similar Threads Similar Threads
I wont See The Password at datebase
07/17/2010 - EO PServer Hosting - 5 Replies
lol i cant see the password at datebase its looklike this can anyone help me to see it thanks alot
sro wont save my skillls in skill bar !!!!
10/04/2009 - SRO Private Server - 9 Replies
help me :P sro wont save my skillls in skill bar !!!!
[Help] StatP wont save
11/02/2008 - CO2 Private Server - 11 Replies
Okay guys I really tired to fix it before i posted but i have no clue what to do now i would appricate your help and give you a thanks after :). but there is what i tryed and it failed i no i musta put it in the wrong area but here. public static void SaveChar(Character Charr) { try { Charr.PackInventory(); Charr.PackEquips(); Charr.PackSkills(); Charr.PackProfs();
A way to save password?
08/04/2006 - Conquer Online 2 - 5 Replies
Is there a way to save my password in the CO clinet?



All times are GMT +1. The time now is 17:25.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.