Page 1 of 2

[Addon] RuneUI Password

PostPosted: 06 Feb 2017, 15:44
by rern
[Addon] RuneUI Password
Tested on RPi3
for RuneAudio 0.3


View code - GitHub

- For RuneUI access restriction
- Password saved as Bcrypt hash, not plain text
- Password can be changed right on login screen
- Logout from settings menu
- Auto logout / session expired in 24 hours (change: $timeout in /srv/http/loginverify.php)
- Also restrict other MPD client (Need reboot after install otherwise bind_to_address "localhost" will still change back to "any" on reset)

Image
Default password: rune

Change password: click RuneAudio logo
Image

Logout: last item in settings menu

Install:
from Addons Menu

Re: RuneUI Password

PostPosted: 06 Feb 2017, 17:37
by hondagx35
Hi rem,

thank you for posting this, looks good.

Two things i recognized:
- "runelogo.svg" is not in your repo
- logout opens a new tab (firefox and chrome on windows), a page reload would be better.

Frank

Re: RuneUI Password

PostPosted: 06 Feb 2017, 23:17
by nihil.baxter
Hello,
i tried your modification and its working very good. As was mentioned before, the logo is missing, but when logging out i dont get a new tab, seems to behave like it should (latest firefox on mac) .
But people still can log in via mpd clients and it doesnt seem like a too useable idea to set a mpd password and your login-mod.
Any suggestions?

Re: RuneUI Password

PostPosted: 07 Feb 2017, 02:43
by rern
hondagx35 wrote:Two things i recognized:
- "runelogo.svg" is not in your repo
- logout opens a new tab (firefox and chrome on windows), a page reload would be better.

Hi Frank,

Thanks for always be the early adopter.
The two things were fixed.

nihil.baxter wrote:But people still can log in via mpd clients and it doesnt seem like a too useable idea to set a mpd password and your login-mod.

Hi nihil.baxter,

I'll look into it.

Re: RuneUI Password

PostPosted: 07 Feb 2017, 12:00
by rern
@nihil.baxter,

Now restrict other MPD client.
Try reinstall again.

Re: [Addon] RuneUI Password

PostPosted: 26 Mar 2019, 14:34
by mlaky
I have RuneAudio v0.4 and this plugin is not avaliable for installation.

Why? (What am I missing?)

Re: [Addon] RuneUI Password

PostPosted: 27 Mar 2019, 08:26
by rern
Menu > Settings > Password protection

Re: [Addon] RuneUI Password

PostPosted: 27 Mar 2019, 10:21
by mlaky
rern wrote:Menu > Settings > Password protection

Unfortunately, I do not see such an option. :cry:

Re: [Addon] RuneUI Password

PostPosted: 28 Mar 2019, 11:16
by rern
mlaky wrote:
rern wrote:Menu > Settings > Password protection

Unfortunately, I do not see such an option. :cry:

Menu > Settings > [Features management group] > Password protection
(under UPnP/DLNA, above Local browser)
No need for the addon - in case you tried to find it in Addons page.

Re: [Addon] RuneUI Password

PostPosted: 28 Mar 2019, 11:37
by mlaky
I don't have that option...

Rune Settings - Mozilla Firefox_201.png
Rune Settings - Mozilla Firefox_201.png (70.42 KiB) Viewed 2244 times