<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26977">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is somewhat a simple fix for 5.18.0, but this really needs<br />
revisiting.</p>

<p>The probelm is that newUserSetData is called N times for various<br />
properties. From the POV of this method, there is no way to no we're on<br />
teh last property. It simply checks for username and realname.</p>

<p>However, the order the N properties are inserted is effectively<br />
undefined.</p>

<p>The two things together don't work.</p>

<p>This patch also blocks for the password.<br />
Ideally it needs to be setData, setData, setData, then some new flush<br />
method.</p>

<p>There's a technical regression that you can no longer create a user account<br />
with no password, but that's arguably a feature.</p>

<p>CCBUG: 416801</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Created a new user<br />
Looked in /etc/shadow</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R128 User Manager</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.18</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26977">https://phabricator.kde.org/D26977</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/accountmodel.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>