(stored: &StoredUser, catalog: &SystemCatalog)
| 7 | use crate::control::security::catalog::{StoredUser, SystemCatalog}; |
| 8 | |
| 9 | pub fn put(stored: &StoredUser, catalog: &SystemCatalog) { |
| 10 | if let Err(e) = catalog.put_user(stored) { |
| 11 | warn!( |
| 12 | username = %stored.username, |
| 13 | error = %e, |
| 14 | "catalog_entry: put_user failed" |
| 15 | ); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | pub fn delete(username: &str, catalog: &SystemCatalog) { |
| 20 | // Fully remove the user record from redb. `delete_user` is |