• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Change acc name coding [Modern ACC]

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
743
Solutions
5
Reaction score
200
Location
Pr0land
GitHub
Erexo
Hello guys,
Im using Gesior ACC, I want to switch for modern, i want to keep my database, but modern is coding acc name.
There is any way to set normal coding on create account?
 
[webpagefolder]/system/application/controllers/account.php

PHP:
$account->setPassword(sha1($_POST['password']));
change to
PHP:
$account->setPassword($_POST['password']);

With this change all new created accounts won't be encrypted but I don't know if you'll can log in.

BTW, try to search in all files the word "sha" and remove it.
 
And must change in ../system/application/models/account_model.php

FIND
PHP:
$sql = $this->db->get_where('accounts', array('name' => $_POST['name'], 'password' => sha1($_POST['pass'])));

REPLACE
PHP:
$sql = $this->db->get_where('accounts', array('name' => $_POST['name'], 'password' => $_POST['pass']));
 
Back
Top