Protecting dashboard - Don't work?

Thanks! Well, i found this post earlier and it kind of worked. The dashboard did not render properly with selected colors etc, and a refresh gave me an error...

First of i'm not really sure why the admin password protection work why this does not. Second, if someone just have a solution/hack i'd really appreciate it. :slight_smile:

I'm not really used to server side javascript (did a bigger project using koa like 3 years ago) nor hosting nodejs on iis, so in my case it just feels like i'm re-inventing wheels.