mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
PM-11535 Only add password to 2 factor login path if present (#3958)
This commit is contained in:
parent
071a5330e6
commit
774b828cb0
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,8 @@ import androidx.lifecycle.SavedStateHandle
|
|||
import androidx.navigation.NavController
|
||||
import androidx.navigation.NavGraphBuilder
|
||||
import androidx.navigation.NavOptions
|
||||
import androidx.navigation.NavType
|
||||
import androidx.navigation.navArgument
|
||||
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||
import com.x8bit.bitwarden.data.platform.datasource.network.util.base64UrlDecodeOrNull
|
||||
import com.x8bit.bitwarden.data.platform.datasource.network.util.base64UrlEncode
|
||||
|
@ -48,6 +50,13 @@ fun NavGraphBuilder.twoFactorLoginDestination(
|
|||
) {
|
||||
composableWithSlideTransitions(
|
||||
route = TWO_FACTOR_LOGIN_ROUTE,
|
||||
arguments = listOf(
|
||||
navArgument(EMAIL_ADDRESS) { type = NavType.StringType },
|
||||
navArgument(PASSWORD) {
|
||||
type = NavType.StringType
|
||||
nullable = true
|
||||
},
|
||||
),
|
||||
) {
|
||||
TwoFactorLoginScreen(
|
||||
onNavigateBack = onNavigateBack,
|
||||
|
|
Loading…
Reference in a new issue