The login rewrite on MS 2.0 Answered

Post author
Ilai Szpiezak

Hey Does anyone know how to do the login rewrite on memberstack 2.0 so that once a user is logged in the "login button" is replaced for a different button such as "Dashboard"? Before you could do this set up in a few steps on Memberstack 1.0 but I can't find it in 2.0

Comments

5 comments

  • Comment author
    Shadi null

    You could achieve this by having a custom attribute of data-ms-content=“!members” on the login button and a custom attribute of data-ms-content=“members” on the dashboard button

    0
  • Comment author
    Ilai Szpiezak

    Great point! Is this the only way? Or is there a way Memberstack does it alone like in 1.0?

    0
  • Comment author
    Shadi null

    I don’t have any experience with memberstack 1.0, unfortunately I can’t help you there. 😥

    0
  • Comment author
    Ilai Szpiezak

    No worries! That worked perfectly! Thanks a lot!

    0
  • Comment author
    Duncan Hamra

    Just one thing to add here - You can use the attribute data-ms-action="login-redirect" on your dashboard button to make it more secure.

    That button will only be visible once the member is logged in and the link is automatically populated from Memberstack 🎉

    0

Please sign in to leave a comment.