-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2257 from 18F/stages/rc-2018-06-22
Deploy stages/rc-2018-06-22 to int
- Loading branch information
Showing
249 changed files
with
3,463 additions
and
1,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.3 | ||
2.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
source 'https://rubygems.org' | ||
git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" } | ||
|
||
ruby '~> 2.3.7' | ||
ruby '~> 2.5.1' | ||
|
||
gem 'rails', '~> 5.1.3' | ||
|
||
|
@@ -49,7 +49,7 @@ gem 'saml_idp', git: 'https://github.com/18F/saml_idp.git', tag: 'v0.7.0-18f' | |
gem 'sass-rails', '~> 5.0' | ||
gem 'savon' | ||
gem 'scrypt' | ||
gem 'secure_headers', '~> 3.0' | ||
gem 'secure_headers', '~> 6.0' | ||
gem 'sidekiq' | ||
gem 'simple_form' | ||
gem 'sinatra', require: false | ||
|
@@ -114,7 +114,7 @@ group :test do | |
end | ||
|
||
group :production do | ||
gem 'aamva', git: '[email protected]:18F/identity-aamva-api-client-gem', tag: 'v3.0.0' | ||
gem 'aamva', git: '[email protected]:18F/identity-aamva-api-client-gem', tag: 'v3.0.1' | ||
gem 'equifax', git: '[email protected]:18F/identity-equifax-api-client-gem.git', tag: 'v1.1.0' | ||
gem 'lexisnexis', git: '[email protected]:18F/identity-lexisnexis-api-client-gem', tag: 'v1.0.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
GIT | ||
remote: [email protected]:18F/identity-aamva-api-client-gem | ||
revision: 41cf170a0161883f3a4a34f5a5edbb186a36bc06 | ||
tag: v3.0.0 | ||
revision: 015186dd86691294404229ee051cfcf9e87fb6c7 | ||
tag: v3.0.1 | ||
specs: | ||
aamva (3.0.0) | ||
aamva (3.0.1) | ||
dotenv | ||
hashie | ||
httpi | ||
|
@@ -272,7 +272,7 @@ GEM | |
fasterer (0.4.1) | ||
colorize (~> 0.7) | ||
ruby_parser (~> 3.11.0) | ||
ffi (1.9.23) | ||
ffi (1.9.25) | ||
ffi-compiler (1.0.1) | ||
ffi (>= 1.0.0) | ||
rake | ||
|
@@ -415,7 +415,7 @@ GEM | |
rack-headers_filter (0.0.1) | ||
rack-mini-profiler (1.0.0) | ||
rack (>= 1.2.0) | ||
rack-protection (2.0.1) | ||
rack-protection (2.0.2) | ||
rack | ||
rack-proxy (0.6.4) | ||
rack | ||
|
@@ -543,8 +543,7 @@ GEM | |
wasabi (~> 3.4) | ||
scrypt (3.0.5) | ||
ffi-compiler (>= 1.0, < 2.0) | ||
secure_headers (3.7.3) | ||
useragent | ||
secure_headers (6.0.0) | ||
selenium-webdriver (3.11.0) | ||
childprocess (~> 0.5) | ||
rubyzip (~> 1.2) | ||
|
@@ -565,10 +564,10 @@ GEM | |
json (>= 1.8, < 3) | ||
simplecov-html (~> 0.10.0) | ||
simplecov-html (0.10.0) | ||
sinatra (2.0.1) | ||
sinatra (2.0.2) | ||
mustermann (~> 1.0) | ||
rack (~> 2.0) | ||
rack-protection (= 2.0.1) | ||
rack-protection (= 2.0.2) | ||
tilt (~> 2.0) | ||
slim (3.0.9) | ||
temple (>= 0.7.6, < 0.9) | ||
|
@@ -626,7 +625,6 @@ GEM | |
unicode-display_width (1.3.0) | ||
uniform_notifier (1.11.0) | ||
user_agent_parser (2.4.1) | ||
useragent (0.16.8) | ||
uuid (2.3.9) | ||
macaddr (~> 1.0) | ||
valid_email (0.1.0) | ||
|
@@ -754,7 +752,7 @@ DEPENDENCIES | |
sass-rails (~> 5.0) | ||
savon | ||
scrypt | ||
secure_headers (~> 3.0) | ||
secure_headers (~> 6.0) | ||
shoulda-matchers (~> 3.0) | ||
sidekiq | ||
simple_form | ||
|
@@ -779,7 +777,7 @@ DEPENDENCIES | |
zxcvbn-js | ||
|
||
RUBY VERSION | ||
ruby 2.3.7p456 | ||
ruby 2.5.1p57 | ||
|
||
BUNDLED WITH | ||
1.16.1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class AccountRecoverySetupController < ApplicationController | ||
include AccountRecoverable | ||
include UserAuthenticator | ||
|
||
before_action :confirm_two_factor_authenticated | ||
|
||
def index | ||
return redirect_to account_url unless piv_cac_enabled_but_not_phone_enabled? | ||
@two_factor_options_form = TwoFactorOptionsForm.new(current_user) | ||
@presenter = account_recovery_options_presenter | ||
end | ||
|
||
private | ||
|
||
def account_recovery_options_presenter | ||
AccountRecoveryOptionsPresenter.new | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module AccountRecoverable | ||
def piv_cac_enabled_but_not_phone_enabled? | ||
current_user.piv_cac_enabled? && !current_user.phone_enabled? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Authorizable | ||
def authorize_user | ||
return unless current_user.phone_enabled? | ||
|
||
if user_fully_authenticated? | ||
redirect_to account_url | ||
elsif current_user.two_factor_enabled? | ||
redirect_to user_two_factor_authentication_url | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.