Skip to content

Commit

Permalink
Merge pull request #45 from sebadob/admin-ui-user-mfa-section
Browse files Browse the repository at this point in the history
Admin UI user mfa section improvements
  • Loading branch information
sebadob committed Sep 6, 2023
2 parents 4f0d75a + f94f4c2 commit 61464bf
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
]

[workspace.package]
version = "0.15.0-20230904"
version = "0.15.0-20230906"
edition = "2021"
authors = ["Sebastian Dobe <sebastiandobe@mailbox.org>"]
license = "AGPLv3"
Expand Down
24 changes: 17 additions & 7 deletions frontend/src/components/admin/users/UserMfa.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,25 @@
{#each passkeys as passkey (passkey.name)}
<div class="keyContainer">
<div class="row">
Passkey Name:
<div class="label">
Passkey Name:
</div>
<b>{passkey.name}</b>
</div>
<div class="row">
Key Registered:
<div class="label">
Key Registered:
</div>
<span class="font-mono">{formatDateFromTs(passkey.registered)}</span>
</div>
<div class="row">
Last Usage:
<div class="label">
Last Usage:
</div>
<span class="font-mono">{formatDateFromTs(passkey.last_used)}</span>
</div>
<div class="row">
<div></div>
<div class="label"></div>
<div class="deleteBtn">
<Button on:click={() => handleDeleteKey(passkey.name)} level={4}>
DELETE
Expand All @@ -103,7 +109,8 @@
}
.deleteBtn {
margin-right: -.8rem;
text-align: right;
margin: -.33rem 0 0 -.8rem;
}
.desc {
Expand All @@ -121,14 +128,17 @@
.keysContainer {
margin: .5rem;
max-width: 22rem;
gap: .5rem;
padding-right: 2rem;
overflow-y: auto;
}
.label {
width: 7rem;
}
.row {
display: flex;
gap: .5rem;
justify-content: space-between;
}
</style>
5 changes: 2 additions & 3 deletions frontend/src/components/admin/users/UserPassword.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@
</Button>

<div class="desc">
You can reset the users MFA / Security Keys.<br>
Be careful though, since this <b>cannot be reverted</b> without user interaction.<br>
It will disable all MFA logins for this user.
You can either set and reset a user's password<br/>
or send out a new reset E-Mail for self-service.
</div>

<Button
Expand Down
Binary file modified out/rauthy
Binary file not shown.
Binary file modified out/rauthy-lite
Binary file not shown.
1 change: 0 additions & 1 deletion rauthy-models/src/entity/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use sqlx::postgres::PgRow;
use sqlx::sqlite::SqliteRow;
use sqlx::{Error, FromRow, Row};
use std::str::FromStr;
use tracing::debug;

#[macro_export]
macro_rules! sign_jwt {
Expand Down

0 comments on commit 61464bf

Please sign in to comment.