update mock data

This commit is contained in:
Jacob Overgaard
2024-03-27 09:35:03 +01:00
parent e1a9df601e
commit 5bc8d8d121
3 changed files with 6 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ export const mfaLoginProviders: Array<UserTwoFactorProviderModel> = [
},
{
isEnabledOnUser: false,
providerName: 'SMS',
providerName: 'sms',
},
{
isEnabledOnUser: true,

View File

@@ -83,7 +83,10 @@ export const manifestDevelopmentHandler = rest.get(umbracoPath('/package/manifes
type: 'mfaLoginProvider',
alias: 'My.MfaLoginProvider.Custom',
name: 'My Custom MFA Provider',
forProviderNames: ['email', 'sms'],
forProviderName: 'sms',
meta: {
label: 'Setup SMS Verification',
},
},
],
},

View File

@@ -28,7 +28,7 @@ export const handlers = [
ctx.status(200),
ctx.json({
$type: 'TwoFactorAuthInfo',
qrCodeSetupImageUrl: 'https://placehold.co/200x200',
qrCodeSetupImageUrl: 'https://placehold.co/200x200?text=QR+Code+here',
secret: '8b713fc7-8f17-4f5d-b2ac-b53879c75953',
}),
);