Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • 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
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Technical Support
  3. Best way to handle returnTo and logout from main site?

Best way to handle returnTo and logout from main site?

Planlagt Fastgjort Låst Flyttet Technical Support
1 Indlæg 1 Posters 1 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • adam-c@community.nodebb.orgA This user is from outside of this forum
    adam-c@community.nodebb.orgA This user is from outside of this forum
    adam-c@community.nodebb.org
    wrote on sidst redigeret af
    #1

    I’m using NodeBB on community.swimstandards.com, and my main site is on swimstandards.com.

    I’d like to reuse NodeBB’s login system for my main site using the session sharing plugin, so users log in once through NodeBB and gain access to features on main site.

    1. When users click “Login” or “Register” on the main site, I redirect them to NodeBB. I want them to return to the original page afterward. Right now I save the returnTo URL in sessionStorage and use JS on the NodeBB side to redirect them back after login. Is there a better/native way to handle this in NodeBB?

    2. For logout: I’d like to let users log out from main with a single button. Posting to /logout on the community site doesn’t seem to be working. What is the best workaround?

    Thanks for any help!

    1 Reply Last reply
    1
    0
    • System shared this topic on
    Svar
    • Svar som emne
    Login for at svare
    • Ældste til nyeste
    • Nyeste til ældste
    • Most Votes


    • Log ind

    • Har du ikke en konto? Tilmeld

    • Login or register to search.
    Powered by NodeBB Contributors
    Graciously hosted by data.coop
    • First post
      Last post
    0
    • Hjem
    • Seneste
    • Etiketter
    • Populære
    • Verden
    • Bruger
    • Grupper