Skip to main content

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

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?

4 comments

  • Donald Barlow
    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
  • Julian Galluzzo
    Julian Galluzzo

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

    0
  • Elvis M
    Elvis M OP
    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
  • Oliver
    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.

Sitemap