Skip to content

Commit

Permalink
Optimize Mfa Info
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jul 10, 2024
1 parent 7ca40d7 commit e3346a8
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.6">
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.6" />
<PackageReference Include="Nager.Authentication.Abstraction" Version="2.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.7" />
<PackageReference Include="Nager.Authentication.Abstraction" Version="2.0.5" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
<PackageReference Include="Nager.Authentication.AspNet" Version="2.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.7" />
<PackageReference Include="Nager.Authentication.AspNet" Version="2.0.5" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
</ItemGroup>

Expand Down
53 changes: 27 additions & 26 deletions src/Frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"test": "echo \"No test specified\" && exit 0"
},
"dependencies": {
"@quasar/extras": "^1.16.11",
"@quasar/extras": "^1.16.12",
"core-js": "^3.6.5",
"quasar": "^2.16.4",
"quasar": "^2.16.5",
"vue": "^3.0.0",
"vue-router": "^4.0.0"
},
Expand Down
27 changes: 27 additions & 0 deletions src/Frontend/src/components/UserManagementList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ const columns : QTableProps['columns'] = [
format: val => date.formatDate(val, 'YYYY-MM-DD HH:mm'),
style: 'width: 180px'
},
{
name: 'mfaActive',
required: true,
label: 'Mfa Active',
align: 'left',
field: row => row.mfaActive,
style: 'width: 180px'
},
{
name: 'actions',
required: true,
Expand Down Expand Up @@ -191,6 +199,25 @@ onMounted(async () => {
</q-td>
</template>

<template #body-cell-mfaActive="props">
<q-td :props="props">
<template v-if="props.row.mfaActive">
<q-icon
name="check_box"
color="green"
size="1.5rem"
/>
</template>
<template v-else>
<q-icon
name="check_box_outline_blank"
color="red"
size="1.5rem"
/>
</template>
</q-td>
</template>

<template #body-cell-actions="props">
<q-td :props="props">
<q-btn
Expand Down
3 changes: 3 additions & 0 deletions src/Frontend/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ export interface User {
roles?: string
firstname?: string
lastname?: string
lastFailedValidationTimestamp?: string
lastSuccessfulValidationTimestamp?: string
mfaActive: boolean
}

0 comments on commit e3346a8

Please sign in to comment.