ditojs / dito-example

4 stars 2 forks source link

unable to login to admin panel #13

Closed puckey closed 4 years ago

puckey commented 4 years ago

When I run dito-example using:

yarn add current-script-polyfill // (see https://github.com/ditojs/dito-example/issues/12)
yarn install
yarn db:reset && yarn db:seed
yarn dev

And then login at the admin page at http://0.0.0.0:8080/admin/

It redirects to an empty page with the Dummies button on the side. When I press on it, I am redirected to another login screen.. When I login again, again I am redirected to the same login screen and I see the following error in the console:

TypeError: Cannot create property 'name' on boolean 'true'
    at eval (dito-admin.umd.min.js:1)
    at tryCatch (runtime.js:45)
    at Generator.invoke [as _invoke] (runtime.js:274)
    at Generator.prototype.<computed> [as next] (runtime.js:97)
    at n (dito-admin.umd.min.js:1)
    at s (dito-admin.umd.min.js:1)
    at eval (dito-admin.umd.min.js:1)
    at new Promise (<anonymous>)
    at eval (dito-admin.umd.min.js:1)
    at ne (dito-admin.umd.min.js:1) undefined
lehni commented 4 years ago

Try http://localhost:8080/admin/ or the machine's actual IP address. Something about using 0.0.0.0 is causing this problem.

puckey commented 4 years ago

It works on localhost, but using the machine's local network IP address (192.168.1.71) gives the same problems as using 0.0.0.0