Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/javascript/app/pages/user/account/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,10 @@ const Authenticate = (() => {
await BinarySocket.send(submit_data).then(response => {
if (response.error) {
// Show some error message to user
$('#duplicate_idv_button').on('click', () => {window.location.reload(); }).css({ 'margin': '0 auto' ,'display': 'block' });
$('#idv_document_submit').toggleClass('invisible');
$('#duplicate_idv_container').toggleClass('invisible');
$('#duplicate_idv_text').text(response.error.message);
} else {
// Success - Update authentication object with new status
BinarySocket.send({ get_account_status: 1 }, { forced: true }).then(res => {
Expand Down
5 changes: 5 additions & 0 deletions src/templates/app/user/authenticate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ const Authenticate = () => (
/>
</div>

<div id='duplicate_idv_container' className='container invisible'>
<p id='duplicate_idv_text' className='notice-msg center-text' />
<button id='duplicate_idv_button' className='button container'>{it.L('Try Again')}</button>
</div>

<div id='idv_document_submit' className='idv-container invisible'>
<div className='document-submit center-text'>
<img className='idv-container__main-icon' src={it.url_for('images/pages/authenticate/verify_identity.svg')} />
Expand Down