How to display a custom "access denied" error message instead of a URL redirect in Memberstack for dual logins? Answered

Post author
Elvis M

Hey everyone! I'm currently building a website with dual logins, one for "buyers" and one for "sellers". And my question is, is it possible to display an error message for example "access denied" instead of the default URL redirect inside memberstack?

Comments

4 comments

  • Comment author
    Donald Barlow

    I'm building a similar style website. I ended up just hiding any links that they aren't allowed access to. How did you do your login system? I ended up having to do two different logins systems

    0
  • Comment author
    Julian Galluzzo

    Elvis M what would the logic be? How would it know when to show that access denied page

    0
  • Comment author
    Elvis M
    This it how i made the login/signup system, the signup was simple to seperate. But when it comes to login, you can login as seller on the buyers login and vice versa just because of the default attribute "data-ms-form=login"
     
    Even if you login as a seller on the buyers login you will still be logged in as seller and not a buyer, that's done. But i don't want them to be able to login on the "wrong" login at all
     
    0
  • Comment author
    Oliver

    Hey Elvis, i did a similar style, but instead of a double login, I have differentiated between Creator and Brands during registration and created a custom field with the value=true if it is a brand. In the login area, I have then hidden the fields that should not be visible for brands. I hope I was able to help you a little

    0

Please sign in to leave a comment.