Skip to content
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

Accept modified terms #23

Open
pbb72 opened this issue Feb 13, 2017 · 4 comments
Open

Accept modified terms #23

pbb72 opened this issue Feb 13, 2017 · 4 comments
Assignees

Comments

@pbb72
Copy link
Contributor

pbb72 commented Feb 13, 2017

Currently, users only need to accept terms once.

But when terms are updated, the user should accept them again.

This should be done in two locations:

  • After logging in.
  • If already logged in, when starting the app. (After the splash screen?)

If declining the terms, the user should be logged out.

@pbb72 pbb72 self-assigned this Feb 13, 2017
@bjornhjelle
Copy link

The terms are as of now hardcoded in a controller in the backend. When we change the terms we also change the 'date_of_update'. Whenever the user logs in the API checks if the terms has been accepted after last 'date_of_update'. The API has a method to check if the user has accepted already.

@Abbe98
Copy link
Member

Abbe98 commented Mar 4, 2017

@bjornhjelle what's the best way to reset the fact that an user has accepted the terms? I remember this was broken over at biocaching.com and could need to do that for debugging purposes...

@bjornhjelle
Copy link

Logg into server as yourself, and:
$ sudo su - bc
$ cd speciesdb
$ rails db
Password: *****
MariaDB [speciesdb_production]> select id from users where email = '[email protected]';
MariaDB [speciesdb_production]> update users set accepted_terms_at = curdate() - interval 1 year where id = ();

@Abbe98
Copy link
Member

Abbe98 commented Mar 4, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants