How to update an iPhone without entering passcode?

My jailbroken iphone messed up and the screen is black, it turns on but its just black. Its still black even when i put it in safe mode. The only way I know to fix this is to update or restore it. IOS 8.3 is avalible and i can update but it requires my passcode to do so.

By the way, TouchID does not work because i restarted my phone