1. A method for authenticating a user of an electronic device, comprising: while access to one or more resources of the electronic device is restricted: displaying a plurality of shapes on a display of the electronic device; receiving a user selection that includes detecting a plurality of inputs selecting a subset of the plurality of shapes displayed on the display of the electronic device; while receiving the user selection, detecting time delays between consecutive inputs in the plurality of inputs; after receiving the user selection, determining whether the selected subset of the plurality of shapes meet visual pattern criteria based on which shapes in the plurality of shapes were selected and whether the user selection meets temporal pattern criteria based on one or more time delays between inputs in the plurality of inputs; and in response to the determining: in accordance with a determination that the user selection meets the visual pattern criteria and the temporal pattern criteria, providing access to the one or more restricted resources; and in accordance with a determination that the user selection does not meet both the visual pattern criteria and the temporal pattern criteria, forgoing providing access to the one or more restricted resources.