Reduce complexity of the account_update #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently it is complex af, see if it can be made cleaner
assigned to @silver
Thanks to
11b348326a
we dont actually require this field in teh ldap so that on its own will reduce the complexityIf password isn't secure, or they are updating password
skSecure
or field == "userPassword`change password to new password (or existing one if not changing it)
mark secure
if not changing password
Mod::Replace(field, HashSet::from([value]))
put all that in the
if !rs.is_empty() {
block and then you're doneIE replace lines 46 on
That second if should be if not the userPassword field. Not as an else to the above block
mentioned in commit
bf1d91e110
specifically because you don't want to continue on doing stuff if you can't get anything back from the ldap or the user doesn't exist or something
That commit should fix it up
mentioned in commit
344d958aec