Page 1 of 1

Use netjukebox without login

Posted: Thu Oct 04, 2012 10:02 am
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

Re: Use netjukebox without login

Posted: Thu Oct 25, 2012 12:28 pm
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;

Re: Use netjukebox without login

Posted: Wed Apr 01, 2015 12:58 am
by FrankK
6.03.2: ananomous works without password