Commit 10f1af77 authored by Ignacio Corderi's avatar Ignacio Corderi
Browse files

Changed setSecurity to allow empty pins to be set

parent 7f8b9a8b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -475,10 +475,10 @@ class Security(object):

            op.acl.extend(proto_acls)

        if old_lock_pin: op.oldLockPIN = old_lock_pin
        if new_lock_pin: op.newLockPIN = new_lock_pin
        if old_erase_pin: op.oldErasePIN = old_erase_pin
        if new_erase_pin: op.newErasePIN = new_erase_pin
        if not old_lock_pin is None: op.oldLockPIN = old_lock_pin
        if not new_lock_pin is None: op.newLockPIN = new_lock_pin
        if not old_erase_pin is None: op.oldErasePIN = old_erase_pin
        if not new_erase_pin is None: op.newErasePIN = new_erase_pin

        return (m, None)