Remove code for 'account disabled' state of under 13

This commit is contained in:
Georgi Angelov 2024-08-21 12:05:35 +03:00
parent 1564358bac
commit 9072c849d2
4 changed files with 0 additions and 43 deletions

View file

@ -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));

View file

@ -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"
}
]

View file

@ -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 = () => (
<InformationPage
title={
<FormattedMessage id="under13AccountDisabled.title" />
}
>
<div className="inner info-inner">
<span className="nav-spacer" />
<p><FormattedMessage id="under13AccountDisabled.description" /></p>
<span className="nav-spacer" />
</div>
</InformationPage>
);
render(<Page><Under13AccountDisabled /></Page>, document.getElementById('app'));

View file

@ -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."
}