mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-19 15:33:54 +02:00
Harden migrate session to prevent duplicate migration errors (#1599)
This commit is contained in:
parent
d22dc28698
commit
d9b79ba6d1
|
@ -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