This commit is contained in:
Diego Mello 2020-04-28 16:19:19 -03:00
parent 939dfe4ba0
commit da3ac2b332
3 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,11 @@ const PasscodeEnter = ({ theme, finishProcess }) => {
};
const biometry = async() => {
const result = await LocalAuthentication.authenticateAsync({ disableDeviceFallback: true });
const result = await LocalAuthentication.authenticateAsync({
disableDeviceFallback: true,
cancelLabel: I18n.t('Local_authentication_biometry_fallback'),
promptMessage: I18n.t('Local_authentication_biometry_title')
});
if (result?.success) {
finishProcess();
}

View File

@ -562,6 +562,8 @@ export default {
Mark_unread: 'Mark Unread',
Wait_activation_warning: 'Before you can login, your account must be manually activated by an administrator.',
Screen_lock: 'Screen lock',
Local_authentication_biometry_title: 'Authenticate',
Local_authentication_biometry_fallback: 'Use passcode',
Local_authentication_unlock_option: 'Unlock with Passcode',
Local_authentication_change_passcode: 'Change Passcode',
Local_authentication_info: 'Note: if you forget the Passcode, you\'ll need to delete and reinstall the app.',

View File

@ -502,6 +502,8 @@ export default {
Mark_unread: 'Marcar como não Lida',
Wait_activation_warning: 'Antes que você possa fazer o login, sua conta deve ser manualmente ativada por um administrador.',
Screen_lock: 'Bloqueio de Tela',
Local_authentication_biometry_title: 'Autenticar',
Local_authentication_biometry_fallback: 'Usar senha',
Local_authentication_unlock_option: 'Desbloquear com senha',
Local_authentication_change_passcode: 'Alterar senha',
Local_authentication_info: 'Nota: se você esquecer sua senha, terá de apagar e reinstalar o app.',