Commit 0bd79a59 authored by Leander Schulten's avatar Leander Schulten

UX: You don't have to enter a password if the user can be auto logged in.

UI: Disable the auto login tab for the default user (the default user is always auto logged in)
parent f2c86f83
Pipeline #198515 passed with stage
in 5 minutes and 25 seconds
......@@ -14,6 +14,7 @@ Item{
Layout.fillWidth: true
Layout.fillHeight: true
Layout.preferredHeight: model.rowCount() * 50
Layout.minimumHeight: 100
clip: true
highlightMoveDuration: 100
highlightResizeDuration: 100
......@@ -101,8 +102,12 @@ Item{
}else if(modelData===UserManagment.currentUser){
UserManagment.logout()
}else{
dialog.user = modelData;
dialog.visible = true;
// check if we can login the user without password
if (!UserManagment.login(modelData)) {
// we need a password to login
dialog.user = modelData;
dialog.visible = true;
}
}
}
}
......
......@@ -27,6 +27,7 @@ Popup {
}
TabButton{
text: "Auto Login"
enabled: user !== UserManagment.defaultUser
}
}
contentItem: SwipeView{
......
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