Navigation

    NodeBB-CN
    • Register
    • Login
    • Search
    • Categories
    • Unread
    • Recent
    • Tags
    • Users
    • Groups
    • 文档
    • 统计

    [插件] 微信二维码登录

    插件 & 主题
    nodebb 单点登录 微信 插件
    3
    7
    4953
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • a632079
      a632079 PA Team last edited by a632079

      本插件是由 PA Team 开发并且维护的插件。compatible
      Github : https://github.com/a632079/nodebb-sso-wechat-web
      NPM : https://www.npmjs.com/package/nodebb-plugin-sso-wechat-web
      要使用本插件,首先你需要 在 微信开放平台 中成功申请网页应用,并获得 AppID 和 AppSecret。

      安装

      在 ACP 面板 中搜索 nodebb-plugin-sso-wechat-web 或直接在 shell 中输入:

      npm i nodebb-plugin-sso-wechat-web
      

      配置

      您只需要 将 AppID 和 AppSecret 填在 插件 的配置中即可。

      目前该插件支持两个比较友好的功能:

      • 由于微信不提供 Email ,所以我们要求用户提供 Email 来完善注册。
        0_1508056727798_pic.png

      • 支持设置微信头像
        0_1508056995053_337b7857-1f84-4091-be71-5e1d2b898cac-图片.png

      鸣谢:
      nodebb-plugin-sso-wechat2 (基础)
      nodebb-plugin-sso-qq-fix (提供大致修改思路)
      nodebb-plugin-sso-facebook (提供要求用户修改邮箱的方法)
      nodebb-plugin-gravatar (提供添加头像的方法)

      1 Reply Last reply Reply Quote 0
      • L
        liangren last edited by liangren

        我在本地开发环境上装了你的插件并且已经激活成功
        0_1509675849029_3f9a84a8-5f24-4fdf-a25c-c8ceee4872db-image.png
        但是在Plugin的下拉菜单里面没有出现微信的配置选项
        0_1509675981088_98726924-1af4-4afd-af3e-4b65a1bf5025-image.png
        请问是否可以告知一下配置选项在哪里呢? 谢谢。@a632079

        a632079 1 Reply Last reply Reply Quote -1
        • a632079
          a632079 PA Team @liangren last edited by

          @liangren 似乎你并没有点击重启Restart NodeBB按钮

          1 Reply Last reply Reply Quote -1
          • A
            admin last edited by

            0_1520857740886_940f2005-6337-4d61-a47a-ee2c4bac33a9-image.png

            我这个安装完,右边一直转圈,点了微信一直不跳转

            1 Reply Last reply Reply Quote 0
            • A
              admin last edited by

              刷新了一下

              0_1520857878675_81c76a30-e79e-4613-88b5-8d10f0f75a06-image.png
              内部错误
              哎呀!看来是哪里出错了!

              /admin/plugins/sso-wechat

              Failed to lookup view “admin/plugins/sso-wechat” in views directory "/usr/src/app/build/public/templates

              1 Reply Last reply Reply Quote 0
              • A
                admin last edited by

                root@NodeBB:/usr/src/app# npm install nodebb-plugin-sso-wechat-web                                                                                                                                
                npm WARN deprecated native-or-bluebird@1.2.0: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.                                                                                         
                npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.                                                                               
                                                                                                                                                                                                                            
                + nodebb-plugin-sso-wechat-web@1.5.4                                                                                                                                                                        
                updated 1 package in 15.069s
                
                a632079 1 Reply Last reply Reply Quote 0
                • a632079
                  a632079 PA Team @admin last edited by a632079

                  @admin 似乎你并没有点击重启 Restart NodeBB 按钮.
                  该操作等价指令: ./nodebb build && ./nodebb restart

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Powered by NodeBB • © 2017 - 2021 SoarTeam & PA Team All Rights Reserved • Accelerated by UpYun