@wld
It doesn’t matter how you call it. You need to filter the query which you check in the login form using the ternary operator.
The steps in your server action should be:
- Database connection
- Security provider
- Security login
- User details query … > this you filter by the identity returned by the login step!