Bug 458658

Summary: Keep 'OK' button greyed out until the user types something
Product: [Plasma] policykit-kde-agent-1 Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: drf, jgrulich, jreznik, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of password dialog with active 'OK" button despite empty password field

Description Patrick Silva 2022-09-03 11:54:14 UTC
SUMMARY
Currently the 'OK' button of the password dialog is active even if the password field is empty.


STEPS TO REPRODUCE
1. open Discover
2. click on 'Install' button of any app
3. 

OBSERVED RESULT
password dialog shows up with active 'OK' button

EXPECTED RESULT
'OK' button should only be activated after typing something in the password field

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-09-03 11:57:31 UTC
Created attachment 151797 [details]
screenshot of password dialog with active 'OK" button despite empty password field
Comment 2 Nate Graham 2022-09-09 00:01:09 UTC
Believe it or not, we can't do this because it's possible for the user to have an empty password. If we made the suggested change, those users would be unable to provide approval for actions that require authentication.