Téléverser les fichiers vers "workstation-setup/src"
This commit is contained in:
@@ -1078,7 +1078,6 @@ Kirigami.ApplicationWindow {
|
||||
SecretField {
|
||||
id: currentPin
|
||||
placeholderText: "PIN temporaire"
|
||||
inputMethodHints: Qt.ImhDigitsOnly
|
||||
}
|
||||
|
||||
FieldLabel {
|
||||
@@ -1089,7 +1088,6 @@ Kirigami.ApplicationWindow {
|
||||
SecretField {
|
||||
id: newPin
|
||||
placeholderText: "Nouveau PIN personnel"
|
||||
inputMethodHints: Qt.ImhDigitsOnly
|
||||
}
|
||||
|
||||
FieldLabel {
|
||||
@@ -1100,7 +1098,6 @@ Kirigami.ApplicationWindow {
|
||||
SecretField {
|
||||
id: confirmPin
|
||||
placeholderText: "Confirmez le nouveau PIN"
|
||||
inputMethodHints: Qt.ImhDigitsOnly
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
|
||||
@@ -592,6 +592,12 @@ QString ProvisioningBackend::safeMessageForFailure(Operation operation,
|
||||
if (output.contains(QStringLiteral("wrong_pin"))) {
|
||||
return QStringLiteral("Le PIN temporaire est incorrect. N'essayez pas au hasard : le nombre de tentatives FIDO2 est limité.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("multiple_yubikey"))) {
|
||||
return QStringLiteral("Plusieurs clés FIDO2 sont détectées. Ne laissez branchée que la YubiKey à configurer puis réessayez.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("no_fido2"))) {
|
||||
return QStringLiteral("La clé détectée ne fournit pas l'interface FIDO2 nécessaire au changement de PIN.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("no_yubikey"))) {
|
||||
return QStringLiteral("Aucune YubiKey compatible n'a été détectée ou le système n'a pas les droits d'accès nécessaires.");
|
||||
}
|
||||
@@ -601,6 +607,9 @@ QString ProvisioningBackend::safeMessageForFailure(Operation operation,
|
||||
if (output.contains(QStringLiteral("input_error"))) {
|
||||
return QStringLiteral("Le composant de configuration de la YubiKey n'a pas reçu les données attendues.");
|
||||
}
|
||||
if (output.contains(QStringLiteral("pin_helper_error"))) {
|
||||
return QStringLiteral("Le composant FIDO2 a rencontré une erreur interne sans modifier le PIN.");
|
||||
}
|
||||
|
||||
return QStringLiteral("Le PIN YubiKey n'a pas été modifié. Vérifiez que la clé est branchée et que le PIN actuel est correct.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user