Use netjukebox without login

General discussion about netjukebox
Post Reply
BitCoder
User
Posts: 1
Joined: Thu Oct 04, 2012 9:51 am

Use netjukebox without login

Post by BitCoder » Thu Oct 04, 2012 10:02 am

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: 792
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Use netjukebox without login

Post by wbartels » Thu Oct 25, 2012 12:28 pm

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 » Wed Apr 01, 2015 12:58 am

6.03.2: ananomous works without password

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest