diff --git a/src/redux/session.js b/src/redux/session.js index eacbd50b8..0b0c7f3fc 100644 --- a/src/redux/session.js +++ b/src/redux/session.js @@ -103,14 +103,6 @@ const handleSessionResponse = (dispatch, body) => { ) { window.location = '/classes/student_password_reset/'; return; - } else if ( - body.flags && - body.flags.with_parent_email && - body.flags.with_parent_email.account_disabled && - window.location.pathname !== '/under-13-account-disabled' - ) { - window.location = '/under-13-account-disabled'; - return; } dispatch(module.exports.setSession(body)); dispatch(module.exports.setStatus(module.exports.Status.FETCHED)); diff --git a/src/routes.json b/src/routes.json index fb6ec5ebf..06e47904d 100644 --- a/src/routes.json +++ b/src/routes.json @@ -745,11 +745,5 @@ "name": "bird-redirect", "pattern": "^/bird/?$", "redirect": "/ideas" - }, - { - "name": "under-13-account-disabled", - "pattern": "^/under-13-account-disabled/?$", - "view": "under-13/account-disabled", - "title": "Account Not Confirmed by Parent" } ] diff --git a/src/views/under-13/account-disabled.jsx b/src/views/under-13/account-disabled.jsx deleted file mode 100644 index b1262b794..000000000 --- a/src/views/under-13/account-disabled.jsx +++ /dev/null @@ -1,25 +0,0 @@ -const React = require('react'); -const FormattedMessage = require('react-intl').FormattedMessage; - -const Page = require('../../components/page/www/page.jsx'); -const render = require('../../lib/render.jsx'); - -const InformationPage = require('../../components/informationpage/informationpage.jsx'); - -const Under13AccountDisabled = () => ( - - } - > -
- - -

- - -
-
-); - -render(, document.getElementById('app')); diff --git a/src/views/under-13/l10n.json b/src/views/under-13/l10n.json deleted file mode 100644 index cdc71c768..000000000 --- a/src/views/under-13/l10n.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "under13AccountDisabled.title": "Account disabled due to missing parent approval", - "under13AccountDisabled.description": "We require accounts for children under 13 years old to be approved by a parent/guardian within 10 days of registration. Your account was not confirmed within that timeframe and was disabled." -}