pigallery2
pigallery2 copied to clipboard
Disable settings with disabled passwords/accounts
I'm using pigallery for a fotobox. People can take a photo from themselves and afterwards they can login to a wifi hotspot and are redirected to the pigallery website to download their picture. Currently I have to ways to setup pigallery, with a password protected guest account or without accounts. The first approach has the drawback of the requirement of the login credentials and with the second approach the users has access to the settings panel.
I would like to have a command line parameter to disable the settings panel like 'npm start -- --disable-settings=true'.
I just saw that I can achieve this with the 'share without password' option.
you may also set the unauthenticated user role to be "user" instead of "admin". This way if you disable password, the page wont show the settings. This you can only set directly from the config file. Also note, once you do so, you can only change settings by directly changing the config files.
Best, Patri
dbruggner [email protected] ezt írta (időpont: 2020. okt. 10., Szo, 20:38):
I just saw that I can achieve this with the 'share without password' option.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bpatrik/pigallery2/issues/187#issuecomment-706593250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZKA5XH3EAPJCPNKQCZDF3SKCS2DANCNFSM4SLHJFHA .
I set "unAuthenticatedUserRole": 2
and it works, that's what I wanted.
Thanks!
I was just trying this out, and it seems like the "Settings" page is still available and editable if I disable authentication. Is it possible to disable the "Settings" page completely with the latest version? Thanks!
That needs to be fixed. Although if you change settings when authentication disabled, most likely those changes wont be saved as you do not act as admin anymore.
I was just trying this out, and it seems like the "Settings" page is still available and editable if I disable authentication. Is it possible to disable the "Settings" page completely with the latest version? Thanks!
I tried to reproduce this, but could not.
I you disable authentication but you keep the default user tight to be Admin, settings will be available. If you set that to be User, settings will disappear.