mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-25 07:38:11 +00:00
fix(ui/views/App/Main/Assistant/CreateLinphoneSipAccountWithEmail): check correctly password fields
This commit is contained in:
parent
75d3167313
commit
271cff9a42
1 changed files with 11 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue