mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-29 07:17:42 +00:00
login: add userid and api_url getters
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8841b389e3
commit
0c45d51406
@ -78,6 +78,16 @@ impl Login {
|
|||||||
self.api_url = api_url.into();
|
self.api_url = api_url.into();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the userid this request is for.
|
||||||
|
pub fn userid(&self) -> &str {
|
||||||
|
&self.userid
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Get the API url this request is for.
|
||||||
|
pub fn api_url(&self) -> &str {
|
||||||
|
&self.api_url
|
||||||
|
}
|
||||||
|
|
||||||
/// Prepare a request given an already parsed ticket.
|
/// Prepare a request given an already parsed ticket.
|
||||||
pub fn renew_ticket(api_url: impl Into<String>, ticket: Ticket) -> Self {
|
pub fn renew_ticket(api_url: impl Into<String>, ticket: Ticket) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
Loading…
Reference in New Issue
Block a user