Skip to content

Commit

Permalink
Have expire-all-passwords also expire all sessions.
Browse files Browse the repository at this point in the history
Closes #95
  • Loading branch information
ISibboI committed Dec 10, 2023
1 parent 846d3a5 commit c4ad61c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/rvoc-backend/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ enum Cli {
/// Apply pending database migrations.
ApplyMigrations,

/// Expire the passwords of all users.
/// Expire the passwords and sessions of all users.
/// This should always succeed, and users who update their passwords simultaneously should receive an error.
/// Note that this does not expire all sessions.
ExpireAllPasswords,

/// Expire all sessions of all users.
Expand Down Expand Up @@ -163,6 +162,8 @@ async fn expire_all_passwords(configuration: &Configuration) -> RVocResult<()> {
)
.await?;

expire_all_sessions(configuration).await?;

Ok(())
}

Expand Down

0 comments on commit c4ad61c

Please sign in to comment.