Password authentication using two different qml files
-
wrote on 25 Nov 2018, 14:00 last edited by JasmineSethi
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? -
wrote on 26 Nov 2018, 13:23 last edited by
In main.qml create a property to store the password temporarily and use it in the second qml. (As it is with in the application level it is secured). After your task is done clear the property in main.qml.
-
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)
1/4