From 36fee7d9f5fef3338eea1abba793ab675ac50bad Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 8 Nov 2019 15:50:04 +0200 Subject: [PATCH] Revert "FbLogin method" --- src/state_types/models/context.rs | 5 ----- src/state_types/msg/actions.rs | 1 - src/types/api/mod.rs | 6 ------ 3 files changed, 12 deletions(-) diff --git a/src/state_types/models/context.rs b/src/state_types/models/context.rs index b4f57301a..9aadf349d 100644 --- a/src/state_types/models/context.rs +++ b/src/state_types/models/context.rs @@ -115,11 +115,6 @@ impl Update for Ctx { APIRequest::Login { email, password }, )) .unchanged(), - ActionUser::FbLogin { email, fb_login_token } => Effects::one(authenticate::( - action.to_owned(), - APIRequest::FbLogin { email, fb_login_token }, - )) - .unchanged(), ActionUser::PullAndUpdateAddons => match &self.content.auth { Some(Auth { key, .. }) => { let action = action.to_owned(); diff --git a/src/state_types/msg/actions.rs b/src/state_types/msg/actions.rs index 31c7aacba..f6797d673 100644 --- a/src/state_types/msg/actions.rs +++ b/src/state_types/msg/actions.rs @@ -38,7 +38,6 @@ pub enum ActionSettings { #[serde(tag = "userOp", content = "args")] pub enum ActionUser { Login { email: String, password: String }, - FbLogin { email: String, fb_login_token: String }, Register { email: String, password: String, gdpr_consent: GDPRConsent }, Logout, PullAndUpdateAddons, diff --git a/src/types/api/mod.rs b/src/types/api/mod.rs index 34ca7190e..5b8c2674d 100644 --- a/src/types/api/mod.rs +++ b/src/types/api/mod.rs @@ -37,11 +37,6 @@ pub enum APIRequest { email: String, password: String, }, - #[serde(rename_all = "camelCase")] - FbLogin { - email: String, - fb_login_token: String, - }, Register { email: String, password: String, @@ -66,7 +61,6 @@ impl APIMethodName for APIRequest { fn method_name(&self) -> &str { match self { APIRequest::Login { .. } => "login", - APIRequest::FbLogin { .. } => "fbLogin", APIRequest::Register { .. } => "register", APIRequest::Logout { .. } => "logout", APIRequest::AddonCollectionGet { .. } => "addonCollectionGet",