Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c573c517 authored by Andres Morales's avatar Andres Morales Committed by Android Git Automerger
Browse files

am c6d5cd18: Merge "[gatekeeperd] verify a password after enrolling successfully" into mnc-dev

* commit 'c6d5cd18':
  [gatekeeperd] verify a password after enrolling successfully
parents cb0322f5 c6d5cd18
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -136,6 +136,12 @@ public:
            gatekeeper::password_handle_t *handle =
                    reinterpret_cast<gatekeeper::password_handle_t *>(*enrolled_password_handle);
            store_sid(uid, handle->user_id);
            bool rr;

            // immediately verify this password so we don't ask the user to enter it again
            // if they just created it.
            verify(uid, *enrolled_password_handle, sizeof(password_handle_t), desired_password,
                    desired_password_length, &rr);
        }

        return ret;