-
Notifications
You must be signed in to change notification settings - Fork 25
I can't get the 2fa auth panel appear #28
Comments
Do you have any errors in the JavaScript console? |
I personally see this:
|
I see that the publish command is copying the .js file over to a directory that may not be part of what webpack imports. But even trying to add that directory or simply copying the code from the new file ontop of the existing file (the copied version or the one in the spark directory) doesn't seem to fix this. Hmm... |
This is very odd because in my file, I see:
as well as:
So the new code is in the javascript and is referenced by the Vue component definition for the mixin, so it should be picking up on those data properties, and I even ensured there's no duplicates or caching issues. |
AHA! In the new file, the first line should be |
The endpoint suddenly started working. It may have been cached routes. But if you're using this in later versions of Spark, you'll need to ensure that the correct files (the ones copied when doing the publish command) are properly referenced, and that, as of the time of this writing, the vue component uses module.exports rather than try to re-define a component |
I have the same problem and changing the file
didn't help. |
Incase this helps @ondrejmirtes , I had the same problem, on a fresh Spark 9 installed just today :( For me to get this to work I had to do the following:
Hope this works for you :) |
@Fabio101 These are the diffs of what I did: https://gist.github.com/ondrejmirtes/5cf9a457e4b080560cd1522600ace66b |
Your first patch is patching the wrong file, it should be:
and NOT:
|
So the files that I currently have modified, are these:
And it still doesn't work. I give up. This should be fixed in this package itself. |
Thanks a lot @Fabio101, your instructions helped a lot and I can confirm it worked |
Hi,
i followed installation and everything was ok. published assets, and put Spark::useTwoFactorAuth(); in SparkServiceProvider -> booted
but i can't manage to get the panel to appear in settings->security
but, if i open the code, the view pieces are all there
what i'm doing wrong? please help me as I'm pretty new to Spark...
The text was updated successfully, but these errors were encountered: