-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the IP address of the user if userId is empty #179
Comments
I like your suggestion of using some identifier for unidentfied users. Another thought: |
Additionally will use the IP address from the request if the form is not Anonymous and the user is not lgged in. See nextcloud#179
I just tested again with the master branch and the IP address is displayed correctly in the Name column. I'm sending a pull request. |
Additionally will use the IP address from the request if the form is not Anonymous and the user is not lgged in. See nextcloud#179 Signed-off-by: githubDante <github@dante.tk>
Additionally will use the IP address from the request if the form is not Anonymous and the user is not lgged in. See nextcloud#179 Signed-off-by: githubDante <github@dante.tk>
seems this error is still not fixed? Exception: Argument 2 passed to OCA\Forms\Db\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/cloud.offene-werkstaetten.org/apps/forms/lib/Controller/PageController.php on line 277 when i have a pbulic form, and share the link with a non logged-in user, i get a 500 Error. |
Things are mixed up here a bit. The Proposal above is still open, but does not produce any Error if not implemented. Just an empty Name-Field in Results appears for unauthenticated users. |
@skjnldsv @jancborchardt John & me talked about this for a moment and store these users just like anonymous users now, as John said he wouldn't see any advantage of using the ip. |
The only real advantage I could see here is using a browser's footprint to store and make the "only one submission" option available for public views too. But this is far more complicated and not 100% foolproof. So I would close this indeed as out of scope :) |
how to do this? |
Which Forms version are you running? (see apps page)
git [master]
Nextcloud or ownCloud?:
Nextcloud
Nextcloud/ownCloud version: (see Nextcloud admin page)
17.0.2
Description
If the patch proposed in #178 is applied, the form is not configured as Anonymous Form and Access is set to Public access the Name column in the results view will be left empty. The patch included below is using the IP address from where the request is received as userId and as a result the IP address will be shown in Name column.
The text was updated successfully, but these errors were encountered: