大家知道dz的QQ互联是无密码登录的,但是恐惧腾讯这样把用户都拦走了,慢慢的我们的用户就是云用户,但是云又不是我们控制,是腾讯在控制,对腾讯的插件不是很感冒。
腾讯在这点上确实不够厚道,不过可以在设置上要求客户输入密码进行登录。
打开文件source/plugin/qqconnect/template/module.htm
(1) 查找
- $('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['password']}').outerHTML += '$js1';
- $('{$_G['setting']['reginput']['password']}').required = 0;
- $('{$_G['setting']['reginput']['password2']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['password2']}').required = 0;
复制代码
修改成
- //$('{$_G['setting']['reginput']['password']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['username']}').outerHTML += '$js1';
- $('{$_G['setting']['reginput']['password']}').required = 1;
- //$('{$_G['setting']['reginput']['password2']}').parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'none';
- $('{$_G['setting']['reginput']['password2']}').required = 1;
复制代码
2 打开文件 source/module/member/member_connect.php
查找
$ctl_obj->setting['ignorepassword'] = 1;
将它注释掉,或者删除
3 打开文件 source/module/member/member_register.php
查找
- DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '1', '$is_qzone_avatar', '$user_auth_fields')");
复制代码
修改成
- DB::query("INSERT INTO ".DB::table('common_member_connect')." (uid, conuin, conuinsecret, conopenid, conispublishfeed, conispublisht, conisregister, conisqzoneavatar, conisfeed) VALUES ('$uid', '$conuin', '$conuinsecret', '$conopenid', '$conispublishfeed', '$conispublisht', '0', '$is_qzone_avatar', '$user_auth_fields')");
复制代码
|