Can you still ssh to the router?

After you ssh to the router, edit /etc/config/glconfig and remove the password hash.

Then the UI will ask you to set up a password again.