Use netjukebox without login

Locked
BitCoder
User
Posts: 1
Joined: Thu Oct 04, 2012 9:51 am

Use netjukebox without login

Post by BitCoder »

Hi there

Is there a possibility to switch off the login when using netjukebox?
I use netjukebox it only at home and do not open the firewall for the public.

Regards
Tom
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Use netjukebox without login

Post by wbartels »

With some small modifications this is possible.
  • Modify the anonymous user rights, they will be used for everyone!
  • Set the login delay to zero: $cfg['login_delay'] = 0;
Modify the the initialize() function in include/initialize.inc.php to:

Code: Select all

function initialize() {
	if (typeof XMLHttpRequest != 'undefined') {
		document.loginform.username.focus();
		document.loginform.username.select();
		anonymousPassword();
		loginStage1(document.loginform.username.value)
	}
}
In netjukebox 6.00 I will add a new config variable that will make it easier to to enable autologin.
Than something like this can be used:

Code: Select all

//  +------------------------------------------------------------------------+
//  | Authenticate                                                           |
//  +------------------------------------------------------------------------+
$cfg['anonymous_user']              = 'anonymous';
$cfg['anonymous_user_autologin']    = true;
$cfg['login_delay']                 = 0;
FrankK
User
Posts: 4
Joined: Tue Mar 31, 2015 11:59 pm

Re: Use netjukebox without login

Post by FrankK »

6.03.2: ananomous works without password
Locked