Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

x1.5.1QQ互联注册设置密码需要填写原密码

[复制链接]
evenzhou 发表于 2011-11-1 10:04:45 | 显示全部楼层 |阅读模式
用QQ互联注册的用户,论坛初始密码应该为空。但是在设置密码的时候提示需要填写原密码。
原因:spacecp_profile.php 和 spacecp_profile.htm 部分没有判断

在 spacecp_profile.php文件中,第41行  submitcheck('profilesubmit')之前添加


  1. $conisregister = $operation == 'password' && $_G['setting']['connect']['allow'] && DB::result_first("SELECT conisregister FROM ".DB::table('common_member_connect')." WHERE uid='$_G[uid]'");
复制代码


将 spacecp_profile.htm
第33至40行
  1. <p class="tbmu mbm">{lang old_password_comment}</p> <form action="home.php?mod=spacecp&ac=profile" method="post" autocomplete="off"> <input type="hidden" value="{FORMHASH}" name="formhash" /> <table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm"> <tr> <th><strong class="rq" title="{lang required}">*</strong>{lang old_password}</th> <td><input type="password" name="oldpassword" id="oldpassword" class="px" /></td> </tr>
复制代码

替换为

  1. <p class="tbmu mbm"><!--{if !$_G['setting']['connect']['allow'] || !$conisregister}-->{lang old_password_comment}<!--{else}-->{lang connect_config_newpassword_comment}<!--{/if}--></p> <form action="home.php?mod=spacecp&ac=profile" method="post" autocomplete="off"> <input type="hidden" value="{FORMHASH}" name="formhash" /> <table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm"> <!--{if !$_G['setting']['connect']['allow'] || !$conisregister}--> <tr> <th><span class="rq" title="{lang required}">*</span>{lang old_password}</th> <td><input type="password" name="oldpassword" id="oldpassword" class="px" /></td> </tr> <!--{/if}-->
复制代码


banry 发表于 2011-11-1 11:14:53 | 显示全部楼层
谢谢 终于解决了 非常感谢!
回复

使用道具 举报

64243354 发表于 2011-11-1 16:29:25 | 显示全部楼层
支持~~了~~
回复

使用道具 举报

ARCHY` 发表于 2011-11-1 21:39:20 | 显示全部楼层
支持下  学习了
回复

使用道具 举报

liqu12511 发表于 2012-2-18 18:12:56 | 显示全部楼层
学习了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-18 16:21 , Processed in 0.110704 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表