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 { ...@@ -74,7 +74,10 @@ AssistantAbstractView {
PasswordField { PasswordField {
id: password id: password
onTextChanged: assistantModel.password = text onTextChanged: {
assistantModel.password = text
assistantModel.checkPassword()
}
} }
} }
} }
...@@ -86,9 +89,7 @@ AssistantAbstractView { ...@@ -86,9 +89,7 @@ AssistantAbstractView {
PasswordField { PasswordField {
id: passwordConfirmation id: passwordConfirmation
onTextChanged: error = password.text !== text onTextChanged: assistantModel.checkPassword()
? qsTr('passwordConfirmationError')
: ''
} }
} }
} }
...@@ -109,6 +110,12 @@ AssistantAbstractView { ...@@ -109,6 +110,12 @@ AssistantAbstractView {
AssistantModel { AssistantModel {
id: assistantModel id: assistantModel
function checkPassword () {
passwordConfirmation.error = password.text !== passwordConfirmation.text
? qsTr('passwordConfirmationError')
: ''
}
configFilename: 'create-linphone-sip-account.rc' configFilename: 'create-linphone-sip-account.rc'
onEmailChanged: emailError = error 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