mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Add mfa tracking
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
disabled = true;
|
||||
try {
|
||||
await verify(challenge, code);
|
||||
trackEvent(Submit.AccountLogin, { mfa: true });
|
||||
trackEvent(Submit.AccountLogin, { mfa_used: data.factors });
|
||||
if ($page.url.searchParams) {
|
||||
const redirect = $page.url.searchParams.get('redirect');
|
||||
$page.url.searchParams.delete('redirect');
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
await sdk.forConsole.account.createEmailPasswordSession(mail, pass);
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
if ($user) {
|
||||
trackEvent(Submit.AccountLogin);
|
||||
trackEvent(Submit.AccountLogin, { mfa_used: 'none' });
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: 'Successfully logged in.'
|
||||
|
||||
Reference in New Issue
Block a user