Robo3D / roboOctoprint

Octoprint tailored for Robo printers.
GNU Affero General Public License v3.0
2 stars 4 forks source link

[Bug] re-enabling access control after disabling it results in a two step wizard #16

Closed Ximidar closed 6 years ago

Ximidar commented 6 years ago

screenshot from 2017-12-07 14-49-03 screenshot from 2017-12-07 14-49-10

When I disabled access control I deleted the salt entry under Access control, then added the enabled entry with a false value. then restarted octoprint. Everything went back to normal

When I re-enabled access controls I set the enabled tag to true, then set the first start tag to true. Then I restarted octoprint and the wizard looks like this.

Ximidar commented 6 years ago

Then after I hit finish, it logs me in as Ximidar, but only because it remembers me. In incognito, it says user unkown.

Normal Chrome

screenshot from 2017-12-07 15-03-43

Incognito mode

screenshot from 2017-12-07 15-03-33

victorevector commented 6 years ago

We already discussed this in person, but I'm documenting our discussion here...

This occurs because you disabled Access Control but didn't reset it. You must delete /home/pi/.octprint/users.yaml to remove any previous history and reset the wizard. Otherwise, octoprint still thinks there is a user.