password salt not in site.php

Permalink
i made a new install last week.
i need the password salt.
i did not delete it from the config/site.php not sure where it is.

does anyone know where/how i can find it?

 
enlil replied on at Permalink Reply
enlil
It should be in site.php. If it's not, the easiest way to retrieve it, as it's almost impossible, is to get it from the file, from within a site backup.
aryeh replied on at Permalink Reply
wops accidentally marked your answer as best answer. don't think it is solved or anything...

it is a fresh install never touched the site.php site works 100% im just trying to build something that i need the salt.

maybe in the new version it does not show in the site.php?
enlil replied on at Permalink Reply
enlil
Typically that would be one of the better answers. But you've now brought me to realize, there ISN'T a salt in the site.php file on fresh 5.6.3.1 sites. Just double checked one of my sites. Interesting ?!
aryeh replied on at Permalink Reply
so.. any idea how to get the salt?
enlil replied on at Permalink Best Answer Reply
enlil
I'm on the hunt right along with you now. If I figure out where it is I will share ;)
aryeh replied on at Permalink Reply
again hit 'best answer when wnted to reply', sorry.
thank a lot. i will of course also post when i find the answer.

i was thinking we can look at the login controller to find out how c5 gets the salt, however seems like the login controller is empty? concrete5/controllers/login.php

<?php
defined('C5_EXECUTE') or die("Access Denied.");
class LoginController extends Concrete5_Controller_Login { 
}
?>


any idea where the login logic is?
aryeh replied on at Permalink Reply
concrete\core\models\user.php line 256-259
// $salt is retained for compatibilty with older versions of concerete5, but not used.
      public function encryptPassword($uPassword, $salt = null) {
         return $this->getUserPasswordHasher()->HashPassword($uPassword);
        }
enlil replied on at Permalink Reply
enlil
concrete/core/controllers/single_pages/login.php