Connect via serial console, and login:
user: pwreset pass: 1pwreset
The password will be reset to 1fourall.
Note this is only a temporary password, which will be reset to the old password after the next reboot. Use the ncurses menu to set the password to a proper new one.
The factory reset is slightly hidden and can be found under 'software update'.