• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Change Email for Account. Client 12.3

Xpress

New Member
Joined
Jun 20, 2009
Messages
12
Reaction score
0
Hi Otland!
I have a problem, since I am trying to change the email for account name.
You can enter correctly with the email, but I would like to do it by account.

I have searched in many parts, but cannot find a solution. Thank you.
 

Attachments

Solution
go to your createaccount.php and find this:

PHP:
            $reg_account = new Account();
            $reg_account->setName(strtoupper($_POST['accountname']));
            $reg_account->setPassword($_POST['password1']);
            $reg_account->setEMail($_POST['email']);
            $reg_account->setCreateDate(time());
            $reg_account->setCreateIP(Visitor::getIP());
            $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP())));
            $reg_account->save();
then change set email to accountname like this

PHP:
            $reg_account = new Account();
            $reg_account->setName(strtoupper($_POST['accountname']));
            $reg_account->setPassword($_POST['password1'])...
the easiest way is to use a client that still uses account name, otherwise you would need client modifications and server modifications as well
 
go to your createaccount.php and find this:

PHP:
            $reg_account = new Account();
            $reg_account->setName(strtoupper($_POST['accountname']));
            $reg_account->setPassword($_POST['password1']);
            $reg_account->setEMail($_POST['email']);
            $reg_account->setCreateDate(time());
            $reg_account->setCreateIP(Visitor::getIP());
            $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP())));
            $reg_account->save();
then change set email to accountname like this

PHP:
            $reg_account = new Account();
            $reg_account->setName(strtoupper($_POST['accountname']));
            $reg_account->setPassword($_POST['password1']);
            $reg_account->setEMail($_POST['accountname']);
            $reg_account->setCreateDate(time());
            $reg_account->setCreateIP(Visitor::getIP());
            $reg_account->setFlag(Website::getCountryCode(long2ip(Visitor::getIP())));
            $reg_account->save();
so the email will be the account name :D
 
Solution
Wouldn't it be better to edit the source to accept both the email or account name/number?

Edit:
Im not sure how it works "under the hood" while you login.
 
Back
Top