hello - can anybody help ?
I'm new to web direct and I haven't seen a way to detect if the user is using web direct. Your method does not sound secure. I would suggest setting up a second database for registration that could automatically login with a guess account. If the user need access to the other database then you could put a link to that database. The link could be setup as a button and then have it close the registration database. You could setup the registration database as an external storage in the main database if the data is need in the main database.
Take a look at the Get ( applicationVersion ) function as a way to identify if the current user is accessing via a web browser.
I haven't done this, but I would think that you could grant all users very limited "guest" access automatically and then use a re-login script step to log users back in with more privileges once you have determined if they are a web users or not.
Here is a link to the WebDirect user guide. https://fmhelp.filemaker.com/docs/13/en/fm13_webdirect_guide.pdf
The bottom of Page 19 under Functions States
To create conditional behaviors based on the type of client, use the Get(SystemPlatform) function. If the function returns 4, the current user is accessing your solution with FileMaker WebDirect.
I still believe creating a second database is more secure because of the user using a guest account.