Then, you need to query the users table and check the result with a condition.
Add database single query, which queries your user table with the following conditions. Filter by username/email(or whatever is used in the login input):
turn off the ooutput option for the query, as you donât need to use its data on the page, so you donât want to output it in this server action.
Add a condition step, which checks if active, returned by the single query == 1:
Then -> login / Else -> set response 403 (forbidden). You can then show this response text on the page: