source/Setup/Database.php
public function writeAdminLoginData($sLoginName, $sPassword)
    {
        $sPassSalt = $this->getInstance("Utilities")->generateUID();

        $sPassword = hash('sha512', $sPassword . $sPassSalt);

        $sQ = "update oxuser set oxusername='{$sLoginName}', oxpassword='{$sPassword}', oxpasssalt='{$sPassSalt}' where OXUSERNAME='admin'";
        $this->execSql($sQ);

        $sQ = "update oxnewssubscribed set oxemail='{$sLoginName}' where OXEMAIL='admin'";
        $this->execSql($sQ);
    }
public function writeAdminLoginData($sLoginName, $sPassword)
    {
        $sPassSalt = $this->getInstance("Utilities")->generateUID();

        $sPassword = hash('sha512', $sPassword . $sPassSalt);

        $sQ = "update oxuser set oxusername='{$sLoginName}', oxpassword='{$sPassword}', oxpasssalt='{$sPassSalt}' where OXUSERNAME='admin'";
        $this->execSql($sQ);

        $sQ = "update oxnewssubscribed set oxemail='{$sLoginName}' where OXEMAIL='admin'";
        $this->execSql($sQ);
    }
public function writeAdminLoginData ( $ sLoginName , $ sPassword ) { $ sPassSalt = $ this -> getInstance ( "Utilities" ) -> generateUID ( ) ; $ sPassword = hash ( 'sha512' , $ sPassword . $ sPassSalt ) ; $ sQ = "update oxuser set oxusername='{$sLoginName}', oxpassword='{$sPassword}', oxpasssalt='{$sPassSalt}' where OXUSERNAME='admin'" ; $ this -> execSql ( $ sQ ) ; $ sQ = "update oxnewssubscribed set oxemail='{$sLoginName}' where OXEMAIL='admin'" ; $ this -> execSql ( $ sQ ) ; }
Updates default admin user login name and password

@param string $sLoginName admin user login name
@param string $sPassword  admin user login password
Updates default admin user login name and password