Closed Saraylu closed 11 years ago
SOLVED
With changing in line2 of APasswordBehavior.php:
from: Yii::import("packages.passwordStrategy."); to: Yii::import("application.components.passwordStrategy.");
Do this is a bug?
Not really, there are likely just the author used the folder "packages" which were unzipped module "user" and behavior "YiiPassword". You have changed the code Yii::import("packages.users.models."); to Yii::import("application.models."); , and the code Yii::import("packages.passwordStrategy.*"); not changed at your code.
Paths may be different, you are free to choose where to put the files.
There was 1 error:
1) ABcryptPasswordStrategyTest::testEncode CException: Alias "packages.passwordStrategy.*" is invalid. Make sure it points to an existing directory or file.
C:\Apache2\htdocs\yii\framework\YiiBase.php:343 C:\Apache2\htdocs\x\protected\components\YiiPassword\APasswordBehavior.php:2 C:\Apache2\htdocs\yii\framework\YiiBase.php:423 C:\Apache2\htdocs\yii\framework\YiiBase.php:298 C:\Apache2\htdocs\yii\framework\YiiBase.php:198 C:\Apache2\htdocs\yii\framework\base\CComponent.php:327 C:\Apache2\htdocs\yii\framework\base\CComponent.php:298 C:\Apache2\htdocs\yii\framework\db\ar\CActiveRecord.php:389 C:\Apache2\htdocs\x\protected\models\User.php:28 C:\Apache2\htdocs\x\protected\tests\unit\ABcryptPasswordStrategyTest.php:22 C:\php\phpunit:46
FAILURES! Tests: 1, Assertions: 2, Errors: 1.
more: http://www.yiiframework.com/forum/index.php/topic/30077-yii-password-strategies/page__view__findpost__p__199149