Commit 271cff9a authored by Ronan Abhamon's avatar Ronan Abhamon

fix(ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail): check correctly password fields

parent 75d31673
......@@ -74,7 +74,10 @@ AssistantAbstractView {
PasswordField {
id: password
onTextChanged: assistantModel.password = text
onTextChanged: {
assistantModel.password = text
assistantModel.checkPassword()
}
}
}
}
......@@ -86,9 +89,7 @@ AssistantAbstractView {
PasswordField {
id: passwordConfirmation
onTextChanged: error = password.text !== text
? qsTr('passwordConfirmationError')
: ''
onTextChanged: assistantModel.checkPassword()
}
}
}
......@@ -109,6 +110,12 @@ AssistantAbstractView {
AssistantModel {
id: assistantModel
function checkPassword () {
passwordConfirmation.error = password.text !== passwordConfirmation.text
? qsTr('passwordConfirmationError')
: ''
}
configFilename: 'create-linphone-sip-account.rc'
onEmailChanged: emailError = error
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment