Password authentication using two different qml files
-
As i am implementing this for mobile application so m posting this question here.
I have one qml file as firstscreen.qml and another as secondscreen.qml.
I have created two text field shown as below:firstcsreen.qml(for password to enter)
TextField
{
id: frst_pwdTextfield
width: 100
height: 100
echoMode: TextInput.Password
}
TextField
{
id: scnd_pwdTextfield
width: 100
height: 100
echoMode: TextInput.Password
}secondscreen.qml (for password to re-enter)
TextField
{
id: frst_pwdTextfield1
width: 100
height: 100
echoMode: TextInput.Password
}
TextField
{
id: scnd_pwdTextfield1
width: 100
height: 100
echoMode: TextInput.Password
}
When i enter password in the 1st screen and re-enter the password in the second screen , it should match and i want to confirm whether it is same or not (without storing the password in any database).
In other words, how can i compare inputs entered in first screen with the inputs entered in the second screen?
How this can be implemented? -
First you should not have two different qml files for this task. Just create one QML file called LoginCheck.qml
You create two objects of this LoginCheck.qml. Show one object at a time. Move from object to other object based on the user action. Set the properties of second object(SecondScreen) when moving from first object(first screen)