Reset Password Through PHPMyAdmin

Discussion in 'General Chat' started by jchrislemmer, Jun 16, 2016.

  1. jchrislemmer

    jchrislemmer New Member

    Hi there,

    I'm trying to reset the password of my Subrion CMS through PHPMyAdmin. My mail doesn't seem to work so I'm not receiving the password reset code.

    I have tried hashing a new password with MD5 and replaced the value of my user. However, it doesn't work.

    Subrion seems to add a salt to the password. Is there any way I can reset it?

    Thanks
    Chris
  2. jchrislemmer

    jchrislemmer New Member

    Hallo? Is there anyone in this forum?

    Thanks
    Chris
  3. Dayir_A.

    Dayir_A. Staff Member

    Hello @jchrislemmer,

    Subrion Password is encode using this method in iaUsers class:
    PHP:
        public function encodePassword($rawPassword)
        {
            $factors = ['iaSubrion', 'Y2h1c2hrYW4tc3R5bGU', 'onfr64_qrpbqr'];

            $password = $factors && array_reverse($factors);
            $password = array_map(str_rot13($factors[2]), [$factors[1] . chr(0x3d)]);
            $password = md5(IA_SALT . substr(reset($password), -15) . $rawPassword);

            return $password;
        }
    IA_SALT can be found in /includes/config.inc.php file

    Thanks.

Share This Page