src/ChickenWire/Model.php
public function resaltPassword($password, $salt = '')
		{

			// No salt used..?
			$auth = self::$auth;
			if ($auth->useSalt == false) {
				throw new \Exception("This Auth does not use salting.", 1);				
			}

			// Apply the values to the record
			$this->setAttributes(array(
				$auth->saltField => $salt,
				$auth->passwordField => $password
			));

		}
public function resaltPassword($password, $salt = '')
		{

			// No salt used..?
			$auth = self::$auth;
			if ($auth->useSalt == false) {
				throw new \Exception("This Auth does not use salting.", 1);				
			}

			// Apply the values to the record
			$this->setAttributes(array(
				$auth->saltField => $salt,
				$auth->passwordField => $password
			));

		}
public function resaltPassword ( $ password , $ salt = '' ) { // No salt used..? $ auth = self :: $ auth ; if ( $ auth -> useSalt == false ) { throw new \ Exception ( "This Auth does not use salting." , 1 ) ; } // Apply the values to the record $ this -> setAttributes ( array ( $ auth -> saltField => $ salt , $ auth -> passwordField => $ password ) ) ; }
Re-encrypt the password
@param  string 	The plain text password to re-encrypt
@param  string 	Optional salt to encrypt with. If you leave this empty, a random salt will be generated.
@return void
Re - encrypt the password