mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Harden migrate session to prevent duplicate migration errors (#1599)
This commit is contained in:
parent
3e92d0f18a
commit
7d046f37ba
|
@ -1195,4 +1195,9 @@ impl ValueSetT for ValueSetApiToken {
|
|||
// This is what ties us as a type that can be refint checked.
|
||||
Some(Box::new(self.map.keys().copied()))
|
||||
}
|
||||
|
||||
fn migrate_session_to_apitoken(&self) -> Result<ValueSet, OperationError> {
|
||||
// We are already in the api token format, don't do anything.
|
||||
Ok(Box::new(self.clone()))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue