vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 30b408eaa9f3d84c4aee849597ba1f25d4ba06ad
parent bf41d74501907bd545b471752eb2b51f000a9500
Author: Mathieu Valois <mvalois@teicee.com>
Date:   Tue, 17 Oct 2023 11:18:39 +0200

LastActive is null instead of 'Never' when never connected

Diffstat:
Msrc/api/admin.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/admin.rs b/src/api/admin.rs @@ -328,7 +328,7 @@ async fn get_users_json(_token: AdminToken, mut conn: DbConn) -> Json<Value> { usr["CreatedAt"] = json!(format_naive_datetime_local(&u.created_at, DT_FMT)); usr["LastActive"] = match u.last_active(&mut conn).await { Some(dt) => json!(format_naive_datetime_local(&dt, DT_FMT)), - None => json!("Never"), + None => json!(None::<String>), }; users_json.push(usr); }