Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Add ToS/License Agreement/Cookies popup to Web-App

Open andreaskoepf opened this issue 2 years ago • 3 comments

Every user of the web application has to accept the OA ToS/license agreement before submitting data

I have added backend functionality to manage users and checks for the acceptance: https://github.com/LAION-AI/Open-Assistant/pull/1046

Required changes in web:

  1. on login or dashboard navigation check ToS acceptance status at backend (potentially create user via new POST /api/v1/frontend_users/ endpoint.
  2. check if user has accepted ToS - if not display popup dialog with legal text and checkbox or Yes / No buttons.
  3. Navigate user to https://laion.ai/ if they select No (or log user out)

Legal team:

  • needs to prepare document to show

andreaskoepf avatar Feb 01 '23 00:02 andreaskoepf

Is it possible to have the user accept the ToS the first time they try to do a task instead of when they first navigate to the dashboard?

Otherwise, I think it would also make sense to add a checkbox to the signup screen, before even logging in.

AbdBarho avatar Feb 01 '23 18:02 AbdBarho

Is it possible to have the user accept the ToS the first time they try to do a task instead of when they first navigate to the dashboard?

Yes absolutely .. the backend will send a 451 Unavailable For Legal Reasons response for next-task requests when the user has not accepted the ToS (acceptance-date is still Null in the DB).

Otherwise, I think it would also make sense to add a checkbox to the signup screen, before even logging in.

That's of course also possible but we need an option that works for existing users, too,

andreaskoepf avatar Feb 01 '23 18:02 andreaskoepf

@andreaskoepf do we have the text or a link for the terms of service? otherwise I will use a dummy place holder

AbdBarho avatar Feb 03 '23 09:02 AbdBarho