src/CRUDlex/UserSetup.php
public function possibleGenSalt(&$salt, Entity $entity, $saltField)
    {
        if (!$salt) {
            $salt = $this->getSalt(40);
            $entity->set($saltField, $salt);
            return true;
        }
        return false;
    }
public function possibleGenSalt(&$salt, Entity $entity, $saltField)
    {
        if (!$salt) {
            $salt = $this->getSalt(40);
            $entity->set($saltField, $salt);
            return true;
        }
        return false;
    }
public function possibleGenSalt ( & $ salt , Entity $ entity , $ saltField ) { if ( ! $ salt ) { $ salt = $ this -> getSalt ( 40 ) ; $ entity -> set ( $ saltField , $ salt ) ; return true ; } return false ; }
Generates a new salt if the given salt is null.

@param string $salt
the salt to override if null
@param Entity
the entity getting the new salt
@param string $saltField
the field holding the salt in the entity

@return boolean
true if a new salt was generated
Generates a new salt if the given salt is null .