BoltAuth / Auth

Auth extension for Bolt
MIT License
16 stars 17 forks source link

[BUG] admin panel not functioning properly #18

Closed leggewie closed 6 years ago

leggewie commented 6 years ago

I think I've reported this as bug 70 when BoltAuth was still bolt/Members. It seems to have survived the transition to BoltAuth.

I have a pretty virgin installation of bolt 3.3.6 with BoltAuth 3.0.1 at http://localhost/bolt. When I visit http://localhost/bolt/bolt/extensions/auth the sidebar on the right is mostly not functioning. None of the buttons of "Enable", "Disable", "Add role" and "Remove role" seem to have any effect. There is no page refresh or any other discernible action even when I select a user first.

I also find this isn't the best UI. It is my understanding that for those buttons to have any effect, one needs to select at least one user from the list first. As such, I think it would help if they were greyed out until that is the case. I hope this would be easy enough to implement.

FWIW, I use Firefox 56 on Ubuntu. I've tried this in Chromium for the same result.

jimi75 commented 6 years ago

Same Issue for me.

Bolt: 3.3.6 BoltAuth: 3.0.1

Is a JS ejecution problem. I get this in console: screen shot 2017-10-19 at 11 26 53

The 'auth-admin.js' js file is laoded correctly but "auth" is not defined. Namespace problem?

fabani commented 6 years ago

I have the same problem with BoltAuth: 3.0.1, its the javascript variable baseurl that is wrong. In templates/admin/auth.twig on row 120:

    <script>
        var baseurl = "{{ paths.bolt }}extend/auth/action";

However this seems to be fixed i the master branch.

SvanteRichter commented 6 years ago

Hey, sorry it's taken me a while to tag a release with this fix, it should work in 3.0.2 which I just tagged.