fix CachedUserInfo by using a shared memory version counter

This commit is contained in:
Dietmar Maurer
2021-06-25 10:52:38 +02:00
parent cd975e5787
commit fda19dcc6f
5 changed files with 179 additions and 4 deletions

View File

@ -120,8 +120,6 @@ pub fn openid_login(
}
config.set_data(user.userid.as_str(), "user", &user)?;
user::save_config(&config)?;
// fixme: replace sleep with shared memory change notification
std::thread::sleep(std::time::Duration::new(6, 0));
} else {
bail!("user account '{}' missing, disabled or expired.", user_id);
}