Merge pull request #535 from edx/schen/fix_access_block

fix: allow learners to access IDV by default
This commit is contained in:
Simon Chen
2021-10-21 11:09:16 -04:00
committed by GitHub
3 changed files with 3 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ function AccessBlocked({ error, intl }) {
return (
<FormattedMessage
id="id.verification.access.blocked.denied"
defaultMessage="You cannot verify your identity at this time. If you have yet to activate your account, please check your spam folder for the activation email from {email}."
defaultMessage="We cannot verify your identity at this time. If you have yet to activate your account, please check your spam folder for the activation email from {email}."
description="Text that displays when user is denied from making a request, and to check their email for an activation email."
values={{
email: <strong>no-reply@registration.edx.org</strong>,

View File

@@ -56,7 +56,7 @@ export default function IdVerificationContextProvider({ children }) {
// this flag ensures that they are directed straight back to the summary panel
const [reachedSummary, setReachedSummary] = useState(false);
let canVerify = false;
let canVerify = true;
let error = '';
let existingIdVerification;
@@ -75,8 +75,6 @@ export default function IdVerificationContextProvider({ children }) {
} else {
error = ERROR_REASONS.CANNOT_VERIFY;
}
} else if (verifiedNameEnabled) {
canVerify = true;
}
}

View File

@@ -67,7 +67,7 @@ describe('AccessBlocked', () => {
</Router>
)));
const text = screen.getByText(/You cannot verify your identity at this time./);
const text = screen.getByText(/We cannot verify your identity at this time./);
expect(text).toBeInTheDocument();
});