在Facebook的注册插件中更改密码所需的字符

时间:2011-05-30 04:33:39

标签: facebook plugins passwords registration

我正在尝试在我的网站上实施Facebook的注册插件,并想知道是否可以更改密码字段的最小长度。

我试过以下,但没有运气......

<fb:registration 
    fields="[
        {'name':'name'},
        {'name':'email'},
        {'name':'gender', 'view':'prefilled'},
        {'name':'password', 'view':'not_prefilled'}]" 
    redirect-uri="http://localhost:8888/asdsad/register/"
    width="633"
    onvalidate="validate"
    border_color="#FFFFFF">
</fb:registration>

<script> 
    function validate(form) {
        errors = {};
        if (form.password.length < 6) {
        errors.password = "You password must be greater than 6 characters";
        }
        return errors;
     }
</script> 

有可能吗?谢谢!

0 个答案:

没有答案