男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! 官方交流社區(qū)

標(biāo)題: 整合 UCenter,同步注冊到 Discuz [打印本頁]

作者: ha8484    時間: 2022-5-12 14:03
標(biāo)題: 整合 UCenter,同步注冊到 Discuz
應(yīng)用整合 UCenter,同步注冊到 Discuz 的用戶,在 Discuz 登錄時得手動激活,用戶體驗很不好,查了資料修改應(yīng)用下的 ./uc_client/model/user.php 文件之后不生效。  哪位大佬知道是什么問題么

作者: ha8484    時間: 2022-5-12 15:57
解決了 修改 ./uc_server/model/user.php下的文件就可以了
作者: 微笑背后的味道    時間: 2024-10-13 13:10
ha8484 發(fā)表于 2022-5-12 15:57
解決了 修改 ./uc_server/model/user.php下的文件就可以了

修改的哪里,求告知
作者: 文強(qiáng)    時間: 2024-10-13 13:33
微笑背后的味道 發(fā)表于 2024-10-13 13:10
修改的哪里,求告知

搜索 function add_user 里的

  1. $this->db->query("INSERT INTO ".UC_DBTABLEPRE."memberfields SET uid='$uid'");
復(fù)制代碼


在下邊添加

  1. $this->db->query("INSERT INTO `dbname`.pre_common_member SET uid='$uid', username='$username', password='$password', email='$email', adminid='0', groupid='10', regdate='".$this->base->time."', credits='0', timeoffset='9999'");
  2.     $this->db->query("INSERT INTO `dbname`.pre_common_member_status SET uid='$uid', regip='$regip', lastip='$regip', lastvisit='".$this->base->time."', lastactivity='".$this->base->time."', lastpost='0', lastsendmail='0'");
  3.     $this->db->query("INSERT INTO `dbname`.pre_common_member_profile SET uid='$uid'");
  4.     $this->db->query("INSERT INTO `dbname`.pre_common_member_field_forum SET uid='$uid'");
  5.     $this->db->query("INSERT INTO `dbname`.pre_common_member_field_home SET uid='$uid'");
  6.     $this->db->query("INSERT INTO `dbname`.pre_common_member_count SET uid='$uid', extcredits1='0', extcredits2='0', extcredits3='0', extcredits4='0', extcredits5='0', extcredits6='0', extcredits7='0', extcredits8='0'");
復(fù)制代碼


這是我網(wǎng)上搜到的答案,試試吧!
*記得修改前先備份文件。
作者: 文強(qiáng)    時間: 2024-10-13 13:38
微笑背后的味道 發(fā)表于 2024-10-13 13:10
修改的哪里,求告知

如果上面的代碼不行再試試這個

  1.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member SET uid='$uid', username='$username', password='$password', email='$email', adminid='0', groupid='10', regdate='".$this->base->time."', credits='0', timeoffset='9999'");
  2.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_status SET uid='$uid', regip='$regip', lastip='$regip', lastvisit='".$this->base->time."', lastactivity='".$this->base->time."', lastpost='0', lastsendmail='0'");
  3.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_profile SET uid='$uid'");
  4.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_field_forum SET uid='$uid'");
  5.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_field_home SET uid='$uid'");
  6.     $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_count SET uid='$uid', extcredits1='0', extcredits2='0', extcredits3='0', extcredits4='0', extcredits5='0', extcredits6='0', extcredits7='0', extcredits8='0'");
復(fù)制代碼

作者: 微笑背后的味道    時間: 2024-10-13 18:46
文強(qiáng) 發(fā)表于 2024-10-13 13:38
如果上面的代碼不行再試試這個

謝謝哈,原來是我一直修改的其他user.php文件,
大佬,要實現(xiàn)同步登陸,需要哪些啊
作者: 科站網(wǎng)    時間: 2024-10-14 10:01
以discuz作為用戶登錄統(tǒng)一入口:https://addon.dismall.com/plugins/tshuz_oauth2server.html




歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0