Skip to content

Commit

Permalink
Merge pull request #130 from Stremio/revert-128-fb-login
Browse files Browse the repository at this point in the history
Revert "FbLogin method"
  • Loading branch information
swetlasg authored Nov 8, 2019
2 parents 25bfaf1 + 36fee7d commit d41688c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/state_types/models/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ impl<Env: Environment + 'static> Update for Ctx<Env> {
APIRequest::Login { email, password },
))
.unchanged(),
ActionUser::FbLogin { email, fb_login_token } => Effects::one(authenticate::<Env>(
action.to_owned(),
APIRequest::FbLogin { email, fb_login_token },
))
.unchanged(),
ActionUser::PullAndUpdateAddons => match &self.content.auth {
Some(Auth { key, .. }) => {
let action = action.to_owned();
Expand Down
1 change: 0 additions & 1 deletion src/state_types/msg/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 0 additions & 6 deletions src/types/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand Down

0 comments on commit d41688c

Please sign in to comment.