0
0
Fork 0

feat(AccountBasicData): add twoFactorFk

This commit is contained in:
Alex Moreno 2024-09-09 09:59:22 +02:00
parent b4ef1e297a
commit 684215fc46
4 changed files with 11 additions and 2 deletions

View File

@ -24,7 +24,7 @@ watch(
<template>
<FormModel
ref="formModelRef"
:url="`VnUsers/preview`"
url="VnUsers/preview"
:url-update="`VnUsers/${route.params.id}/update-user`"
:filter="accountFilter"
model="Accounts"
@ -43,6 +43,13 @@ watch(
option-value="code"
option-label="code"
/>
<VnSelect
url="TwoFactorTypes"
v-model="data.twoFactorFk"
:label="t('account.card.twoFactor')"
option-value="code"
option-label="code"
/>
</div>
</template>
</FormModel>

View File

@ -35,6 +35,7 @@ account:
willDeactivated: User will be deactivated
activated: User activated!
deactivated: User deactivated!
twoFactor: Two factor
actions:
setPassword: Set password
disableAccount:

View File

@ -32,6 +32,7 @@ account:
activated: ¡Usuario activado!
deactivated: ¡Usuario desactivado!
newUser: Nuevo usuario
twoFactor: Doble factor
privileges:
delegate: Puede delegar privilegios
actions:

View File

@ -12,7 +12,7 @@ describe('Two Factor', () => {
cy.request(
'PATCH',
`http://localhost:3000/api/VnUsers/${userId}/update-user?access_token=DEFAULT_TOKEN`,
{ twoFactor: 'email' }
{ twoFactorFk: 'email' }
);
});