Skip to content

Commit

Permalink
Remove totp
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 26, 2024
1 parent 90ff591 commit f101048
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/Module/Admin/User/assets/user-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,3 @@ if (form?.hasAttribute('uni-srp-registration')) {
}
});
}

// Refresh Totps
u.selectOne('[data-task=refresh-totps]')!.addEventListener('click', async (e) => {
let button = e.currentTarget as HTMLButtonElement;

button.disabled = true;

const userId = button.dataset.userId;

try {
await u.$http.post(
'@user_ajax/refreshTotps',
{
id: userId
}
);

location.reload();
} catch (e) {
u.alert(decodeURIComponent((e as any).statusText));
}

button.disabled = false;
});

0 comments on commit f101048

Please sign in to comment.