Hi Doırijan
Yo can create a login page by following the steps as shown in the pictures below.
The first user will go to the page with the buttons anonymously. Then set which login page the button will go to.
But , as a more practical method, you can use one login page and set the pages the user will go to according to their role after signing in, with a single login page. If the user has two roles, you can develop a scenario for which role he will continue with after logging in.
you can develop a nanoflows scenario for the login button.
For example, if login is true and if the user has one role, go to this page accordingly his role, if he has more than one role, go to a page where yhe user can make choices.
Create nanoflows for the login button. A scenario similar to the one below. You need to configure it according to the structure of your project. This scenario improvisation example is to guide you. I haven't tested it :) You can do something similar, of course you can also implement it yourself in the easiest way.
I tried that, but it always shows me the default homepage.
I successfully register a user in a Trainer or Client entity, but when i try to log with a user it shows default homepage
Neautorizirani_korisnik means anonymous user
Treneri means Trainers
Klijenti means Clients
and here are my roles in security, i connected them to entities: