• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Redirecting the user to a different registration page

Scheduled Pinned Locked Moved Technical Support
authenticationregistrationcustom
3 Posts 3 Posters 2.1k Views
    • 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.
  • J Offline
    J Offline
    jcano
    wrote on last edited by
    #1

    I'm currently using NodeBB as the forums for a platform that includes more applications (blog, forums and the main app, to be precise) and all the authentication is handled by the app. The three applications share the same credentials, managed by the main app, so you create an account on the main app and you can use it on the blog and the forums. To handle the session tokens and SSO, I'm using Auth0, and with the NodeBB Auth0 plugin I can login and logout on the forums without any problems.

    NodeBB's registration is turned off, as it is handled by the main app, but I still want to allow users to register using the main app registration form.

    Is it possible to make http://<nodebb host>/register redirect the user to my own registration page? Or change where the registration form data is sent to? Any ideas?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    You can use this custom JS to redirect users. Place it in custom header in your nodebb ACP.

    $(window).on('action:ajaxify.end', function(ev, data){
        if (data.url === 'register') {
                window.location.href =  'http://yoursite.com/register';
        }
    });
    
    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #3

    On top of what @baris said, if you are using a reverse-proxy like nginx, you can add that location to redirect to the same place.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development