Skip to content
Snippets Groups Projects
Unverified Commit dd231d83 authored by maximemenager's avatar maximemenager Committed by GitHub
Browse files

Add the 2FA for OIDC (#1961)

* Add eslint

* Extract the 2FA from login process

* Refactor the session generation

* Add 2FA for OIDC

* Take off trusted device checkbox for oidc

* Add test

* Fix linter

* Improve linting

- Add the JS linting in scripts/lint.sh
- Add documentation
- Lint the JS files

* Use cozy-ui utilities instead of js hack for templates

* Move trusted device checkbox logic to Go

* Lighten the twoFactor function by extracting the failed case

* Simplify the isTrustedDevice function

* Check device token only for login form

* Rework the long run session

* Bring back the checkmark for login

* Add ESLint to .travis.yml

* Sudo commands for travis

* Force ESLint to v5

* Add prettier

* Add prettier

* Move eslint to scripts/lint.sh

* Wrap the piwik initialization in a try/catch

* Remove CSRF

* Disable longRunSession for reset passphrase page

* Fix linter

* Use a QueryParam instead of FormValue for LongRunSession
parent ed4412b8
Branches
Tags
No related merge requests found
Showing
with 767 additions and 403 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment