Git Product home page Git Product logo

Comments (11)

YasserAntonio avatar YasserAntonio commented on June 26, 2024 1

It did it thanks !

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024 1

I think I need to put a warning up for this config option. Thanks for keeping abreast of your issues.

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024

there's not an admin.php in the root, it's all in the subfolder. you can't access the admin pages from the sidebar?

from ampache-docker.

YasserAntonio avatar YasserAntonio commented on June 26, 2024

nope :
Capture d’écran 2020-09-03 à 11 01 51

there is some chances that it's linked to my next issue #47 : /var/www/login (None could be negotiated)

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024

That picture in 47 looks like you don't have use_auth set in your config

from ampache-docker.

YasserAntonio avatar YasserAntonio commented on June 26, 2024

in which file / page the use_auth must be set ?

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024

config/ampache.cfg.php

Screenshot_20200903-195505_ConnectBot.jpg

from ampache-docker.

YasserAntonio avatar YasserAntonio commented on June 26, 2024

nothing comparing to all your work ! Thanks for maintaining this cool project.

from ampache-docker.

kuzi-moto avatar kuzi-moto commented on June 26, 2024

@lachlan-00 Last I looked at the code, there appeared to be some logic that would show a login button at the top of the page when the current user was logged in. Looks like that code was broken at some point, because I could never get it to show. But sometimes I can login as admin by manually navigating to the login page when use_auth was off. Though for whatever reason it wouldn't always work.

Ideally you should still be able to login, even when use_auth is off.

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024

I've put a little lock to notify that admin is disabled. (disabled with simple_user_mode in the conf)
image

The login thing is related to getting the globals for user here, i think because default level is 5 and this is looking at less than it's never going to show up. putting <= in there now

    public static function is_registered()
    {
        if (!Core::get_global('user')->id) {
            return false;
        }

        if (!AmpConfig::get('use_auth') && Core::get_global('user')->access < 5) {
            return false;
        }

        return true;
    }

from ampache-docker.

lachlan-00 avatar lachlan-00 commented on June 26, 2024

reverted the is_registered change.

the use_auth issue will eventually get solved but it's a bit too convoluted for now.

from ampache-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.