diff --git a/.rubocop.yml b/.rubocop.yml index aff0a9a55..29db37a33 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,8 +11,3 @@ Rails/OutputSafety: Enabled: false Rails/HelperInstanceVariable: Enabled: false - -# Temporary - should be reverted as soon as the Verify tests finishes -AllCops: - Exclude: - - "config/initializers/csp.rb" diff --git a/app/assets/javascripts/modules/show-gov-uk-verify-hint.js b/app/assets/javascripts/modules/show-gov-uk-verify-hint.js deleted file mode 100644 index 920de820c..000000000 --- a/app/assets/javascripts/modules/show-gov-uk-verify-hint.js +++ /dev/null @@ -1,67 +0,0 @@ -window.GOVUK = window.GOVUK || {} -window.GOVUK.Modules = window.GOVUK.Modules || {}; - -(function (global, GOVUK) { - 'use strict' - - var $ = global.jQuery - var VISIBLE_ON_URL = "/personal-tax-account/sign-in/prove-identity" - - GOVUK.Modules.ShowGovUkVerifyHint = function () { - this.start = function (element) { - if (window.location.href.indexOf(VISIBLE_ON_URL) > -1) { - checkLastSuccessfulIdp(element) - } - } - - this.render = function (element, data) { - renderHint(element, data) - } - - function checkLastSuccessfulIdp (element) { - $.ajax({ - url: 'https://www.signin.service.gov.uk/successful-idp', - cache: false, - dataType: 'jsonp', - timeout: 3000 - }).then(function(data){ - renderHint(element, data); - }, function(e){console.log("error", e)}) - } - - function renderHint (element, data) { - if (data != null && data['found'] == 'true') { - $(element).html(generateHtml(data)).show() - $('button:contains("Continue")').addClass('govuk-button--secondary') - } - } - - function generateHtml(data) { - return '
If this wasn\'t you, choose one option:
' - } - } -})(window, window.GOVUK); diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 6452ff849..c57b7470c 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -47,6 +47,5 @@ $govuk-use-legacy-palette: false; @import 'views/answer'; @import 'views/help-page'; @import "views/guide"; -@import 'views/choose_sign_in'; diff --git a/app/assets/stylesheets/views/_choose_sign_in.scss b/app/assets/stylesheets/views/_choose_sign_in.scss deleted file mode 100644 index b1b4bf078..000000000 --- a/app/assets/stylesheets/views/_choose_sign_in.scss +++ /dev/null @@ -1,21 +0,0 @@ -.verify-hint-box { - border: 5px solid $govuk-border-colour; - padding: govuk-spacing(3); - box-sizing: border-box; - margin: 0 0 govuk-spacing(6); - - .verify-hint-logos { - margin-bottom: govuk-spacing(3); - - .verify-hint-logos-idp { - height: 60px; - border-right: 1px solid $govuk-border-colour; - padding-right: govuk-spacing(3); - } - - .verify-hint-logos-verify { - height: 40px; - padding: govuk-spacing(2) 0 govuk-spacing(2) govuk-spacing(3); - } - } -} diff --git a/app/views/content_items/service_sign_in/_choose_sign_in.html.erb b/app/views/content_items/service_sign_in/_choose_sign_in.html.erb index 773aabe8f..899de11ee 100644 --- a/app/views/content_items/service_sign_in/_choose_sign_in.html.erb +++ b/app/views/content_items/service_sign_in/_choose_sign_in.html.erb @@ -27,7 +27,6 @@ <%= render "govuk_publishing_components/components/fieldset", legend_text: legend_text do %>