Commit 0f6d0569 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove Facebook, Twitter and Meteor auth methods until we have them implemented

parent 2176c0ce
package chat.rocket.android.authentication.login.presentation package chat.rocket.android.authentication.login.presentation
import chat.rocket.android.authentication.domain.model.TokenModel
import chat.rocket.android.authentication.presentation.AuthenticationNavigator import chat.rocket.android.authentication.presentation.AuthenticationNavigator
import chat.rocket.android.core.lifecycle.CancelStrategy import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.helper.NetworkHelper import chat.rocket.android.helper.NetworkHelper
...@@ -9,11 +8,7 @@ import chat.rocket.android.infrastructure.LocalRepository ...@@ -9,11 +8,7 @@ import chat.rocket.android.infrastructure.LocalRepository
import chat.rocket.android.server.domain.* import chat.rocket.android.server.domain.*
import chat.rocket.android.server.domain.model.Account import chat.rocket.android.server.domain.model.Account
import chat.rocket.android.server.infraestructure.RocketChatClientFactory import chat.rocket.android.server.infraestructure.RocketChatClientFactory
import chat.rocket.android.util.extensions.encodeToBase64 import chat.rocket.android.util.extensions.*
import chat.rocket.android.util.extensions.generateRandomString
import chat.rocket.android.util.extensions.isEmail
import chat.rocket.android.util.extensions.launchUI
import chat.rocket.android.util.extensions.registerPushToken
import chat.rocket.common.RocketChatException import chat.rocket.common.RocketChatException
import chat.rocket.common.model.Token import chat.rocket.common.model.Token
import chat.rocket.common.util.ifNull import chat.rocket.common.util.ifNull
...@@ -123,8 +118,9 @@ class LoginPresenter @Inject constructor(private val view: LoginView, ...@@ -123,8 +118,9 @@ class LoginPresenter @Inject constructor(private val view: LoginView,
var totalSocialAccountsEnabled = 0 var totalSocialAccountsEnabled = 0
if (settings.isFacebookAuthenticationEnabled()) { if (settings.isFacebookAuthenticationEnabled()) {
view.enableLoginByFacebook() // //TODO: Remove until we have this implemented
totalSocialAccountsEnabled++ // view.enableLoginByFacebook()
// totalSocialAccountsEnabled++
} }
if (settings.isGithubAuthenticationEnabled()) { if (settings.isGithubAuthenticationEnabled()) {
val clientId = getOauthClientId(services, SERVICE_NAME_GITHUB) val clientId = getOauthClientId(services, SERVICE_NAME_GITHUB)
...@@ -151,12 +147,14 @@ class LoginPresenter @Inject constructor(private val view: LoginView, ...@@ -151,12 +147,14 @@ class LoginPresenter @Inject constructor(private val view: LoginView,
} }
} }
if (settings.isMeteorAuthenticationEnabled()) { if (settings.isMeteorAuthenticationEnabled()) {
view.enableLoginByMeteor() //TODO: Remove until we have this implemented
totalSocialAccountsEnabled++ // view.enableLoginByMeteor()
// totalSocialAccountsEnabled++
} }
if (settings.isTwitterAuthenticationEnabled()) { if (settings.isTwitterAuthenticationEnabled()) {
view.enableLoginByTwitter() //TODO: Remove until we have this implemented
totalSocialAccountsEnabled++ // view.enableLoginByTwitter()
// totalSocialAccountsEnabled++
} }
if (settings.isGitlabAuthenticationEnabled()) { if (settings.isGitlabAuthenticationEnabled()) {
val clientId = getOauthClientId(services, SERVICE_NAME_GILAB) val clientId = getOauthClientId(services, SERVICE_NAME_GILAB)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment