I have had my phone secured with a pattern since I've had it. For some reason today it decided to stop working and wouldn't recognise the pattern I was putting in.
After a few failed attempts I managed to get in with my Google account. Once I was in I changed the lock type to PIN, input a pin...