This thread is for any discussion related to the estrongpassword extension:
http://www.yiiframew...strongpassword/
Page 1 of 1
[extension] estrongpassword jQuery pstrength plugin widget
#1
Posted 31 March 2011 - 09:46 AM
Dana Luther
Sr. Developer at Envisage International
D.H. Luther - Web Design & Development
Dana's Yii Blog
Extensions:
ChildrenRequiredValidator | ESitemap | EStrongPassword | ES3
Sr. Developer at Envisage International
D.H. Luther - Web Design & Development
Dana's Yii Blog
Extensions:
ChildrenRequiredValidator | ESitemap | EStrongPassword | ES3
#2
Posted 20 May 2011 - 04:09 PM
I wanted the widget to return the score as captureOutput.
Is it possible?
Is it possible?
#3
Posted 26 August 2011 - 03:38 PM
Hello!,
Nice extension.. but... let me suggest some fixes:
in the wrapper change this:
EStrongPassword.php:
So when you need to "customize" the plugin just do that:
WhereYouUseTheExtension.php:
An Yii will do the hard work!...
Thanks!!!!
E.
Nice extension.. but... let me suggest some fixes:
in the wrapper change this:
EStrongPassword.php:
80: $reqs = CJavaScript::encode($this->requirementOptions);
So when you need to "customize" the plugin just do that:
WhereYouUseTheExtension.php:
<div class="row">
<?php echo $form->labelEx($model, 'password'); ?>
<?php
$verdicts = array(Yii::t('textos', 'Unsecure'),
Yii::t('textos', 'Normal'),
Yii::t('textos', 'Medium'),
Yii::t('textos', 'Strong'),
Yii::t('textos', 'Very Strong'));
$message = Yii::t('texts', 'You must enter a minimum of %d characters');
$reqs = array(
'displayMinChar'=> true,
'minChar'=> 8,
'minCharText'=> $message,
'colors'=> array("#f00", "#c06", "#f60", "#3c0", "#3f0"),
'scores'=> array(20, 30, 43, 50),
'verdicts'=> $verdicts,
'raisePower'=> 1.4,
'length'=> 0,
'lowercase'=> 1,
'uppercase'=> 3,
'one_number'=> 3,
'three_numbers'=> 5,
'one_special_char'=> 3,
'two_special_char'=> 5,
'upper_lower_combo'=> 2,
'letter_number_combo'=> 2,
'letter_number_char_combo'=> 2,
'length'=> true,
'lowercase'=> true,
'uppercase'=> true,
'one_number'=> true,
'three_numbers'=> true,
'one_special_char'=> true,
'two_special_char'=> true,
'upper_lower_combo'=> true,
'letter_number_combo'=> true,
'letter_number_char_combo'=> true);
$this->widget('ext.EStrongPassword.EStrongPassword',
array('form' => $form,
'model' => $model,
'attribute' => 'password',
'requirementOptions' => $reqs));
?>
<?php echo $form->error($model, 'password'); ?>
An Yii will do the hard work!...
Thanks!!!!
E.
#4
Posted 13 September 2011 - 03:08 AM
I am trying to use the extension, today. By README, I added options. But it doesn't go well.
error output:
<div class="row">
<?php echo $form->labelEx($model,'password',array('label'=>'Password (8...20 Letter/Number/Symbol Combination)') ); ?>
<?php //echo $form->passwordField($model,'password',array('size'=>20,'maxlength'=>256)); ?>
<?php $this->widget('ext.EStrongPassword.EStrongPassword',
array('form'=>$form, 'model'=>$model, 'attribute'=>'password',
'requirementsOptions'=>array('minChar'=>8,'one_special_char'=>true)
));?>
<?php echo $form->error($model,'password'); ?>
</div>error output:
CException Property "EStrongPassword.requirementsOptions" is not defined.
#5
Posted 13 September 2011 - 11:43 AM
HomanXH, on 13 September 2011 - 03:08 AM, said:
I am trying to use the extension, today. By README, I added options. But it doesn't go well.
error output:
<div class="row">
<?php echo $form->labelEx($model,'password',array('label'=>'Password (8...20 Letter/Number/Symbol Combination)') ); ?>
<?php //echo $form->passwordField($model,'password',array('size'=>20,'maxlength'=>256)); ?>
<?php $this->widget('ext.EStrongPassword.EStrongPassword',
array('form'=>$form, 'model'=>$model, 'attribute'=>'password',
'requirementsOptions'=>array('minChar'=>8,'one_special_char'=>true)
));?>
<?php echo $form->error($model,'password'); ?>
</div>error output:
CException Property "EStrongPassword.requirementsOptions" is not defined.
Sorry, that example was bad -- it should be "requirementOptions" singular on the requirement. I will update the extension documentation.
Dana Luther
Sr. Developer at Envisage International
D.H. Luther - Web Design & Development
Dana's Yii Blog
Extensions:
ChildrenRequiredValidator | ESitemap | EStrongPassword | ES3
Sr. Developer at Envisage International
D.H. Luther - Web Design & Development
Dana's Yii Blog
Extensions:
ChildrenRequiredValidator | ESitemap | EStrongPassword | ES3
#6
Posted 07 May 2012 - 10:46 AM
Hi, Dana.
Very nice extension.
I want to know if there's any way to use it also on server side validation.
A way to send the strength in order to be used with a model validator, maybe?
TIA!
Very nice extension.
I want to know if there's any way to use it also on server side validation.
A way to send the strength in order to be used with a model validator, maybe?
TIA!
#7
Posted 14 May 2012 - 09:26 AM
Hello Dana,
I have installed the extension and it is very amazing
.
Could you please answer a question?
is there possibility to restrict user to use weak and normal passwords?
Thanks,
Hrach
I have installed the extension and it is very amazing
Could you please answer a question?
is there possibility to restrict user to use weak and normal passwords?
Thanks,
Hrach
#8
Posted 26 April 2013 - 04:57 AM
Hi,
I got this error "Object of class EStrongPassword could not be converted to string ".
Below is my code on my form:
I also put the EStrongPassword folder into /protected/extensions.
Do I need to add some codes on the main config file to make it work?
I would greatly appreciate for your help.
Thanks.
I got this error "Object of class EStrongPassword could not be converted to string ".
Below is my code on my form:
echo $this->widget('ext.EStrongPassword.EStrongPassword', array('form'=>$form, 'model'=>$model, 'attribute'=>'password','requirementOptions'=>array('minChar'=>8,'one_special_char'=>true)));
I also put the EStrongPassword folder into /protected/extensions.
Do I need to add some codes on the main config file to make it work?
I would greatly appreciate for your help.
Thanks.
Share this topic:
Page 1 of 1

Help













