and then stops i guess there is something wrong. This is my Code
$this->view->message = 'Login failed you probably enterd your user name or
password Incorrectly';
$db = Zend_Registry::get('db');
$i=0;
$i+=+1;
$data = array( 'failed_logins' => $i);
$n = $db->update('account478', $data, "username='$uname'");
$this->view->form = $form;
$form->populate($Data);
please help me
Hector Virgen wrote:
>
> If you're using database authentication, take a look at this page to see
> how
> you can add extra conditionals to the adapter:
> http://framework.zend.com/manual/en/zend.auth.adapter.dbtable.html#zend.auth.adapter.dbtable.advanced.advanced_usage
>
> If you want to prevent login after 3 unsuccessful attempts, you can add a
> "failed_login_attempts" field to your users table, and increment the value
> each time the authentication fails.
>
> -Hector
>
>
> On Wed, Apr 15, 2009 at 2:07 PM, Ralph Schindler
> <ralph.schindler@zend.com>wrote:
>
>> Attempting to log in with bad credentials 3 times?
>>
>> Or simply only allowing them to log in 3 times per account?
>>
>> -ralph
>>
>>
>> Doood wrote:
>>
>>> hi, I want to know how to block an account after logining in for more
>>> than
>>> 3
>>> times using the zend framework.
>>>
>>> thanks in advance
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/blocking-users-tp23067116p23302610.html
Sent from the Zend Auth mailing list archive at Nabble.com.
没有评论:
发表评论