How to Downgrade Back to 1.11.x
-
@Soarin Steam Authenticator works perfectly fine for me on 1.12
Are you sure it's not your problem and it's the new versions problem?Edit: Actually it didn't work at first because of the CSRF token and the OpenID provider not providing the CSRF token upon login.
When I get home i'll publish my fix here. -
-
Sorry for taking so long to reply.
So, thing is I fixed the code on the openid passport provider manually changing a couple of lines.
I've started looking around to see if someone did the same as I did and, someone indeed has here: https://github.com/elendirx/ignum-passport-openid
They even added more features and fixed more thingsNow, thing is that the passport-steam should use that openid passport instead of the original one, as that one doesn't support the returnURL parameter and else (which is required for the CSRF token). So, i'm going to see if I can find a package that supports the new OpenID passport and if so, i'm going to make a new plugin for the Steam login of NodeBB and publish it on NPM.
-
@Geferon said in How to Downgrade Back to 1.11.x:
@Soarin Can I have the exact error of the logs?
2019-03-15T13:55:45.520Z [4567/29904] - [31merror[39m: Error: Cannot find module './src/emitter'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Module.require.main.require (/var/www/athforum/require-main.js:8:10)
at /var/www/athforum/node_modules/nodebb-widget-ns-stats/widget/nodebb.js:8:31
at Object.<anonymous> (/var/www/athforum/node_modules/nodebb-widget-ns-stats/widget/nodebb.js:45:3)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
2019-03-15T13:55:45.521Z [4567/29904] - [33mwarn[39m: [plugins] Unable to parse library for: nodebb-widget-ns-stats
2019-03-15T13:55:46.293Z [4567/29904] - [33mwarn[39m: [deprecated] requiring core modules withmodule.parent.require('./user.js')
is deprecated. Please userequire.main.require("./src/<module_name>")
instead.
at /var/www/athforum/node_modules/nodebb-plugin-sso-steam-v2/library.js:4:27
2019-03-15T13:55:46.293Z [4567/29904] - [33mwarn[39m: [deprecated] requiring core modules withmodule.parent.require('../user.js')
is deprecated. Please userequire.main.require("./src/<module_name>")
instead.
at /var/www/athforum/node_modules/nodebb-plugin-sso-steam-v2/library.js:4:27
2019-03-15T13:55:46.293Z [4567/29904] - [31merror[39m: Error: Cannot find module '../user.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at Module.module.require (/var/www/athforum/src/plugins/index.js:55:26)
at /var/www/athforum/node_modules/nodebb-plugin-sso-steam-v2/library.js:4:27
at Object.<anonymous> (/var/www/athforum/node_modules/nodebb-plugin-sso-steam-v2/library.js:204:2)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)EDIT: I've noticed most plugins in general don't actually work for me, should I just reinstall a fresh 1.12.0 NodeBB?
-
What are the commands you used to upgrade?