Skip to content

Commit

Permalink
log out any sessions when the server emergency password is unset
Browse files Browse the repository at this point in the history
Signed-off-by: strawberry <[email protected]>
  • Loading branch information
girlbossceo committed Jun 12, 2024
1 parent 556e782 commit d0069cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/service/globals/emerg_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ fn set_emergency_access() -> Result<bool> {

if pwd_set {
warn!(
"The Conduit account emergency password is set! Please unset it as soon as you finish admin account \
recovery!"
"The server account emergency password is set! Please unset it as soon as you finish admin account \
recovery! You will be logged out of the server service account when you finish."
);
} else {
// logs out any users still in the server service account and removes sessions
services().users.deactivate_account(conduit_user)?;
}

Ok(pwd_set)
Expand Down

0 comments on commit d0069cc

Please sign in to comment.