mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 07:38:47 +00:00
collect extra account fields in AccountData
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
d369de8636
commit
5aee14ac00
@ -1,3 +1,4 @@
|
|||||||
|
use std::collections::HashMap;
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
|
||||||
use openssl::pkey::{PKey, Private};
|
use openssl::pkey::{PKey, Private};
|
||||||
@ -177,6 +178,9 @@ pub struct AccountData {
|
|||||||
|
|
||||||
#[serde(default = "default_true", skip_serializing_if = "is_false")]
|
#[serde(default = "default_true", skip_serializing_if = "is_false")]
|
||||||
pub only_return_existing: bool,
|
pub only_return_existing: bool,
|
||||||
|
|
||||||
|
#[serde(flatten, default, skip_serializing_if = "HashMap::is_empty")]
|
||||||
|
pub extra: HashMap<String, Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
@ -263,6 +267,7 @@ impl AccountCreator {
|
|||||||
},
|
},
|
||||||
external_account_binding: None,
|
external_account_binding: None,
|
||||||
only_return_existing: false,
|
only_return_existing: false,
|
||||||
|
extra: HashMap::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let url = directory.new_account_url();
|
let url = directory.new_account_url();
|
||||||
|
Loading…
Reference in New Issue
Block a user