getcandy / hub

GetCandy v1 Hub built on Nuxt.js
30 stars 9 forks source link

Login doesn't work #8

Closed Repox closed 4 years ago

Repox commented 4 years ago

A fresh install of the Admin Hub produces a client error:

TypeError: Cannot read property 'mounted' of undefined                Login.vue?7463:137 
    at Auth.mounted (auth.js?facc:112)
    at Auth.setStrategy (auth.js?facc:108)
    at Auth.loginWith (auth.js?facc:123)
    at _callee3$ (Login.vue?7463:106)
    at tryCatch (runtime.js?96cf:45)
    at Generator.invoke [as _invoke] (runtime.js?96cf:274)
    at Generator.prototype.<computed> [as next] (runtime.js?96cf:97)
    at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
    at _next (asyncToGenerator.js?1da1:25)
    at eval (asyncToGenerator.js?1da1:32)

Currently, it's not possible to login with the admin hub.

alecritson commented 4 years ago

This looks like the Auth module can't find the strategy, did you update your config as shown here: https://guides.getcandy.io/hub-guides/0.9/introduction/upgrading#update-auth-strategies ?

Notice the key has changed from proxy to login

Repox commented 4 years ago

Confirmed solved.