зеркало из https://github.com/mozilla/fxa.git
Merge pull request #17535 from mozilla/fxa-10077
feat(sync): Add initial feature flag for setting up recovery code after Sync sign-in
This commit is contained in:
Коммит
788bf5b514
|
@ -65,6 +65,7 @@
|
|||
},
|
||||
"featureFlags": {
|
||||
"sendFxAStatusOnSettings": true,
|
||||
"resetPasswordWithCode": true
|
||||
"resetPasswordWithCode": true,
|
||||
"recoveryCodeSetupOnSyncSignIn": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -103,6 +103,9 @@ const settingsConfig = {
|
|||
featureFlags: {
|
||||
keyStretchV2: config.get('featureFlags.keyStretchV2'),
|
||||
resetPasswordWithCode: config.get('featureFlags.resetPasswordWithCode'),
|
||||
recoveryCodeSetupOnSyncSignIn: config.get(
|
||||
'featureFlags.recoveryCodeSetupOnSyncSignIn'
|
||||
),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -232,6 +232,12 @@ const conf = (module.exports = convict({
|
|||
format: Boolean,
|
||||
env: 'FEATURE_FLAGS_RESET_PWD_WITH_CODE',
|
||||
},
|
||||
recoveryCodeSetupOnSyncSignIn: {
|
||||
default: false,
|
||||
doc: 'Enables setting up a recovery code after a Sync sign in',
|
||||
format: Boolean,
|
||||
env: 'FEATURE_FLAGS_RECOVERY_CODE_SETUP_ON_SYNC_SIGN_IN',
|
||||
},
|
||||
},
|
||||
showReactApp: {
|
||||
emailFirstRoutes: {
|
||||
|
|
|
@ -89,6 +89,7 @@ export interface Config {
|
|||
featureFlags?: {
|
||||
keyStretchV2?: boolean;
|
||||
resetPasswordWithCode?: boolean;
|
||||
recoveryCodeSetupOnSyncSignIn?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -166,6 +167,7 @@ export function getDefault() {
|
|||
},
|
||||
featureFlags: {
|
||||
resetPasswordWithCode: false,
|
||||
recoveryCodeSetupOnSyncSignIn: false,
|
||||
},
|
||||
} as Config;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче