This was implemented in DW version but the same goes for Wappler.
- We insert user in the database (when he subscribes).
- We get current user’s data.
- We create a repeat using the query created in step 2 as an expression.
- We add the security provider.
- Using the ‘security login’ as values to validate those coming from the repeat.
- If the data is valid, you can whatever you want (create query, redirect etc).
In the filter just use the identity of the ‘insert in step 1’ to get the username and password.
In the repeat just use as an expression query created in ‘step 2’ and output ‘username’ and ‘password’ so you can use them inside the repeat.
In the ‘security login’ just use the ‘username’ and ‘password’ coming from the repeat.
If user is valid (which will be since Server action has executed successfully and has reached this step) he will be logged in.
After logging in just do whatever you want. Add another query, or just redirect him using the ‘onsuccess’ dynamic event.