Commit graph

6 commits

Author SHA1 Message Date
Annabel Dunstone Gray
5322de32d1
Fix login_spec 2018-05-25 04:53:26 -07: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
Takuya Noguchi
21e6c7acf2 Refactor CSS to eliminate vertical misalignment of login nav 2018-04-11 23:52:47 +09:00
Douwe Maan
6deed66eda
Merge branch 'sh-fix-otp-backup-invalidation-10-5' into 'security-10-5'
Ensure that OTP backup codes are always invalidated - 10.5 port

See merge request gitlab/gitlabhq!2324
2018-03-07 13:36:43 +01:00
Rémy Coutable
fc7f1aa244
Fix user feature specs that were hardcoding 'user1'
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-02-22 12:44:14 +01:00
Renamed from spec/features/login_spec.rb (Browse further)