Dual login from wix

Is it possible on wix to create dual login? 1 is for members and another for admin with different profile page? is it possible?

Why you wanna do that ?

Why not one login for both ?

I have seen a website were there’s an option for different user like an instructor login and a student login. I want to learn if that’s possible in wix and how to do it? i have tried to do lightbox login but it always register as a member and it doesn’t redirect me to dynamic page of instructor that I set. :persevere:

Your wished function is of course possible with wix.

What you would have to do ?

  1. Generating an own custom Login
  2. Including an own custom made REGISTRATION-PAGE (with custom functions).

Such an custom maden Login-system you will find here…

https://community.wix.com/velo/forum/coding-with-velo/generating-an-self-extracting-running-installer-possible-in-js

Navigate trough my posts and search for → LOGIN-SYSTEM and you will surely find more informations about a good maden LOGIN-SYSTEM.

as you can see this website that i have found has a login options. this is the one i’m trying to do. but when I link the dynamic page wix.location (“/wixUser.currentUser.id”); always giving me a error 404 message.

Well showing an example image is good, but surely not enough.

  1. Your first step would be to switch from out-of-wix-box-login to custom login inside the settings.
  2. But before you can do that, you surely already have installed Wix-Members-APP, which will give you the basic login system on your Wix-site.
  3. After you have done the first 2 steps, you will also get the PMD (Private-Members-Data and the CRM (Customer-Relationship-Management-System) where you can manage all your page-member-data.
  4. The next step would be to create the design and the related navigation-menu.
  5. Now you can write the CODE, for your custom LOGIN-SYSTEM.
  6. What should your code be able to do?
    a) registration with different —> USER-ROLES
    b) automatic recognition USER-ROLE for each user when LOGIN.
    c) automatic redirection to the related user-login-page.

If you take your example —> you would have 3 different Login-Pages.
Maybe with 3 different REGISTRATION-FORMS & LOGIN-FORMS.

Working with DATASET is still possible here, but i would recommend to do everything by CODE ONLY using Wix-Data and it’S query-function.

And one more time back to your question…

I want to learn if that’s possible in wix and how to do it?

YES, it is absolutely possible!

Hello @jhepoimontero ,

It’s completely possible, each login page must have it’s own databse to check against, and you can setup a router code to show different profile pages depending on members’ roles (admins or regular members).

Thank you so much @russian-dima ! will try this out and get back to you if i have done this code, will come back to ask some questions again. :grin: