graphicmarket / kirby-2fa

Multi-factor authentication for Kirby 3
MIT License
15 stars 6 forks source link

Cannot read properties of undefined (reading 'name') #12

Open CHE1RON opened 1 year ago

CHE1RON commented 1 year ago

Hey there, in newer Kirby versions (3.7 and above), I get the error from the title, regarding this line telling me that this.$route is undefined 😞

In Kirby v3.6 however, I get this:

Kirby\Cms\App::root(): Return value must be of type string, null returned in file: /path/to/project/kirby/src/Cms/App.php line: 1196

If you can tell me why that is, or what has changed (I cannot seem to find the appropriate documentation on this.$route in the docs), I may be able to contribute & fix this!

Let me know what you think, until then

Cheers! CHE1RON

CHE1RON commented 1 year ago

Update: I've toyed around a little - the 2FA switch is working again, but the login needs some more love 😅