1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-07-07 16:48:35 +00:00
This commit is contained in:
avdb13 2024-07-11 22:44:47 +02:00
parent b80141b33b
commit 5af171e7ee
5 changed files with 17 additions and 15 deletions

View file

@ -152,13 +152,14 @@ impl LoginToken {
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ValidationData {
pub provider: String,
pub redirect_url: String,
#[serde(flatten, with = "AuthorizationValidationDataDef")]
pub inner: AuthorizationValidationData,
}
impl ValidationData {
pub fn new(provider: String, inner: AuthorizationValidationData) -> Self {
Self { provider, inner }
pub fn new(provider: String, redirect_url: String, inner: AuthorizationValidationData) -> Self {
Self { provider, redirect_url, inner }
}
}