Téléverser les fichiers vers "workstation-setup/src"
This commit is contained in:
@@ -15,7 +15,7 @@ Kirigami.ApplicationWindow {
|
||||
property var steps: [
|
||||
{ "title": "Bienvenue", "subtitle": "Présentation" },
|
||||
{ "title": "Mot de passe", "subtitle": "Accès de secours" },
|
||||
{ "title": "YubiKey", "subtitle": "PIN personnel" },
|
||||
{ "title": "YubiKey", "subtitle": "Création du PIN" },
|
||||
{ "title": "Terminé", "subtitle": "Poste prêt" }
|
||||
]
|
||||
|
||||
@@ -26,7 +26,6 @@ Kirigami.ApplicationWindow {
|
||||
newPassword.text === confirmPassword.text
|
||||
|
||||
property bool pinStepValid:
|
||||
currentPin.text.length >= 4 &&
|
||||
newPin.text.length >= 4 &&
|
||||
confirmPin.text.length >= 4 &&
|
||||
newPin.text === confirmPin.text
|
||||
@@ -664,7 +663,7 @@ Kirigami.ApplicationWindow {
|
||||
Repeater {
|
||||
model: [
|
||||
{ "icon": "🔑", "title": "Mot de passe", "text": "Définir votre accès local de secours" },
|
||||
{ "icon": "🔐", "title": "YubiKey", "text": "Personnaliser votre PIN FIDO2" }
|
||||
{ "icon": "🔐", "title": "YubiKey", "text": "Créer votre PIN FIDO2" }
|
||||
]
|
||||
|
||||
Rectangle {
|
||||
@@ -1033,7 +1032,7 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: "Remplacez le PIN temporaire de préparation par un PIN personnel que vous serez seul à connaître."
|
||||
text: "Votre YubiKey doit être vierge : aucun PIN FIDO2 n’est configuré. Choisissez maintenant votre PIN personnel."
|
||||
wrapMode: Text.WordWrap
|
||||
color: "#64748b"
|
||||
font.pixelSize: 15
|
||||
@@ -1062,7 +1061,7 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
Controls.Label {
|
||||
Layout.fillWidth: true
|
||||
text: "Vérifiez Verr Num avant d'utiliser le pavé numérique. En cas de doute, utilisez les chiffres situés au-dessus des lettres."
|
||||
text: "La YubiKey ne doit avoir aucun PIN FIDO2 existant. Le setup crée le premier PIN sans PIN temporaire ni mapping U2F."
|
||||
wrapMode: Text.WordWrap
|
||||
color: "#92400e"
|
||||
font.pixelSize: 13
|
||||
@@ -1070,16 +1069,6 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
FieldLabel {
|
||||
iconName: "dialog-password"
|
||||
labelText: "PIN temporaire actuel"
|
||||
}
|
||||
|
||||
SecretField {
|
||||
id: currentPin
|
||||
placeholderText: "PIN temporaire"
|
||||
}
|
||||
|
||||
FieldLabel {
|
||||
iconName: "security-high"
|
||||
labelText: "Nouveau PIN"
|
||||
@@ -1092,17 +1081,17 @@ Kirigami.ApplicationWindow {
|
||||
|
||||
FieldLabel {
|
||||
iconName: "dialog-ok-apply"
|
||||
labelText: "Confirmation du nouveau PIN"
|
||||
labelText: "Confirmation du PIN"
|
||||
}
|
||||
|
||||
SecretField {
|
||||
id: confirmPin
|
||||
placeholderText: "Confirmez le nouveau PIN"
|
||||
placeholderText: "Confirmez le PIN"
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
visible: confirmPin.text.length > 0 && newPin.text !== confirmPin.text
|
||||
text: "Les deux nouveaux PIN ne correspondent pas."
|
||||
text: "Les deux PIN ne correspondent pas."
|
||||
color: "#dc2626"
|
||||
font.pixelSize: 12
|
||||
}
|
||||
@@ -1159,13 +1148,11 @@ Kirigami.ApplicationWindow {
|
||||
opacity: enabled ? 1.0 : 0.45
|
||||
onClicked: {
|
||||
root.operationError = ""
|
||||
var oldValue = currentPin.text
|
||||
var newValue = newPin.text
|
||||
var confirmationValue = confirmPin.text
|
||||
|
||||
provisioning.changePin(oldValue, newValue, confirmationValue)
|
||||
provisioning.initializePin(newValue, confirmationValue)
|
||||
|
||||
currentPin.text = ""
|
||||
newPin.text = ""
|
||||
confirmPin.text = ""
|
||||
}
|
||||
@@ -1214,7 +1201,7 @@ Kirigami.ApplicationWindow {
|
||||
Controls.Label {
|
||||
Layout.maximumWidth: 680
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: "Votre mot de passe local de secours et le PIN personnel de votre YubiKey ont été configurés avec succès. Vos nouveaux secrets restent personnels et ne sont pas enregistrés dans Git."
|
||||
text: "Votre mot de passe local de secours et le PIN FIDO2 de votre YubiKey ont été configurés avec succès. Vos nouveaux secrets restent personnels et ne sont pas enregistrés dans Git."
|
||||
wrapMode: Text.WordWrap
|
||||
color: "#64748b"
|
||||
font.pixelSize: 15
|
||||
@@ -1231,7 +1218,7 @@ Kirigami.ApplicationWindow {
|
||||
Repeater {
|
||||
model: [
|
||||
{ "icon": "dialog-password", "title": "Mot de passe", "text": "Accès local configuré" },
|
||||
{ "icon": "security-high", "title": "YubiKey", "text": "PIN personnel configuré" },
|
||||
{ "icon": "security-high", "title": "YubiKey", "text": "PIN FIDO2 initialisé" },
|
||||
{ "icon": "computer-laptop", "title": "Poste", "text": "Configuration finalisée" }
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user