Commit graph

21 commits

Author SHA1 Message Date
GitLab Bot
8060e5c609 Add latest changes from gitlab-org/gitlab@master 2022-10-17 12:10:08 +00:00
GitLab Bot
8a9790b0db Add latest changes from gitlab-org/gitlab@master 2022-08-16 18:12:52 +00:00
GitLab Bot
8754d20bbb Add latest changes from gitlab-org/gitlab@master 2022-08-11 03:09:21 +00:00
GitLab Bot
953b58d061 Add latest changes from gitlab-org/gitlab@master 2022-07-11 09:08:40 +00:00
GitLab Bot
2f8483621e Add latest changes from gitlab-org/gitlab@master 2022-07-07 21:09:22 +00:00
GitLab Bot
6ddc820225 Add latest changes from gitlab-org/gitlab@master 2022-06-02 21:09:25 +00:00
GitLab Bot
22fe7d7df6 Add latest changes from gitlab-org/gitlab@master 2022-05-20 21:08:53 +00:00
GitLab Bot
ca5de52835 Add latest changes from gitlab-org/gitlab@master 2021-12-10 18:14:42 +00:00
GitLab Bot
515f39456f Add latest changes from gitlab-org/gitlab@master 2021-12-02 21:10:16 +00:00
GitLab Bot
b754c00a21 Add latest changes from gitlab-org/gitlab@master 2021-09-15 00:09:30 +00:00
GitLab Bot
2d4f258f06 Add latest changes from gitlab-org/gitlab@master 2021-09-13 21:08:53 +00:00
GitLab Bot
d9b3f39aca Add latest changes from gitlab-org/gitlab@master 2021-07-12 15:09:19 +00:00
GitLab Bot
5460c19548 Add latest changes from gitlab-org/gitlab@master 2020-10-05 12:08:47 +00:00
GitLab Bot
163a7046ac Add latest changes from gitlab-org/gitlab@master 2020-02-18 15:08:51 +00:00
gfyoung
12ee2753c1 Enable even more frozen string in app/controllers
Enables frozen string for some vestigial files as
well as the following:

* app/controllers/projects/**/*.rb
* app/controllers/sherlock/**/*.rb
* app/controllers/snippets/**/*.rb
* app/controllers/users/**/*.rb

Partially addresses #47424.
2018-09-25 22:43:49 -07:00
Bob Van Landuyt
3d713ac114 Users can accept terms during registration
When a user checks the `accept` checkbox, we will track that
acceptance as usual. That way they don't need to accept again after
they complete the registration.

When an unauthenticated user visits the `/-/users/terms` page, there
is no button to accept, decline or continue. The 'current-user menu'
is also hidden from the top bar.
2018-06-08 19:17:00 +02:00
tauriedavis
285ffb2238 Messaging on terms page when user already accepted
We show a blue flash banner if the user already accepted, and show a
button allowing them to continue to the application.
2018-06-04 22:22:11 +02:00
Bob Van Landuyt
f25e00bc1e Enforce terms acceptance before other requirements
This prevents a redirect loop when a user has to enable 2FA and accept
the terms.

Now they will need to accept the terms, then enable 2FA, or any other requirements.
2018-05-11 14:27:22 +02:00
Bob Van Landuyt
7684217d68 Enforces terms in the web application
This enforces the terms in the web application. These cases are
specced:

- Logging in: When terms are enforced, and a user logs in that has not
  accepted the terms, they are presented with the screen. They get
  directed to their customized root path afterwards.
- Signing up: After signing up, the first screen the user is presented
  with the screen to accept the terms. After they accept they are
  directed to the dashboard.
- While a session is active:
  - For a GET: The user will be directed to the terms page first,
    after they accept the terms, they will be directed to the page
    they were going to
  - For any other request: They are directed to the terms, after they
    accept the terms, they are directed back to the page they came
    from to retry the request. Any information entered would be
    persisted in localstorage and available on the page.
2018-05-04 13:54:43 +02:00
Bob Van Landuyt
10aa55a770 Allow a user to accept/decline terms
When a user accepts, we store this in the agreements to keep track of
which terms they accepted. We also update the flag on the user.
2018-05-04 13:54:43 +02:00
Bob Van Landuyt
3629dc338f Display terms to a user
When terms are present, they can be viewed on `/-/users/terms`.
2018-05-04 13:52:55 +02:00