Posts: 159
Threads: 8
Joined: Dec 2018
Reputation:
0
Hi,
Moode audio works perfect....
I use 4.3 don't want to update to 4.4.
Now my kids mess up the settings.....
F**k
Is there a way to switch off the settings with an password or code. This is not the second time my kids mess up the settings. I want to block that
Thanks
Jem
Posts: 159
Threads: 8
Joined: Dec 2018
Reputation:
0
I ask that because in rune you can add an password
And that works fine. I thought it was simple to add this.
Tell them not to go look in te settings they are kids....
Thx
Posts: 159
Threads: 8
Joined: Dec 2018
Reputation:
0
:
Try
Menu > Password protection
Posts: 159
Threads: 8
Joined: Dec 2018
Reputation:
0
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RuneAudio - Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="msapplication-tap-highlight" content="no" />
<link rel="stylesheet" href="assets/css/runeui.css">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<style>
body {
height: initial;
}
#divlogin {
text-align: center;
margin-top: 30px;
}
input[type="password"] {
display: inline;
margin-top: 10px;
width: 250px;
text-align: center;
}
#login, #pwdset {
margin-top: 20px;
}
#pwdchange {
display: none;
}
</style>
</head>
<body>
<div id="divlogin">
<img id="logo" class="logo" src="assets/img/logopwd.png"><br>
<input type="password" id="pwd" class="form-control osk-trigger input-lg"><br>
<div id="pwdchange">
existing<br>
<input type="password" id="pwdnew" class="form-control osk-trigger input-lg"><br>
new password<br>
<a id="pwdset" class="btn btn-primary">Set</a>
</div>
<a id="login" class="btn btn-primary">Login</a>
</div>
<script src="assets/js/vendor/jquery-2.1.0.min.js"></script>
<script>
$( document ).ready( function() {
$( '#pwd' ).focus();
$( '#logo' ).click( function() {
$( '#pwdchange, #login' ).toggle();
$( '#pwd' ).focus();
} );
$( '#login' ).click( loginSubmit );
$( '#pwd' ).keypress( function( e ) {
if ( e.which == 13 ) {
loginSubmit();
$( this ).blur();
}
} );
function loginSubmit() {
$.post(
'loginverify.php',
{ 'pwd': $( '#pwd' ).val() },
function( data ) {
if ( data != 1 ) {
alert( 'Wrong password' );
$( '#pwd' ).val( '' ).focus();
} else {
window.location.href = '/';
}
}
);
}
$( '#pwdset' ).click( function() {
$.post(
'loginpwdsave.php',
{ 'pwd': $( '#pwd' ).val(), 'pwdnew': $( '#pwdnew' ).val() },
function( data ) {
if ( data != 1 ) {
alert( 'Wrong existing password' );
$( '#pwd' ).val( '' ).focus();
} else {
$( '#logo' ).click();
alert( 'Password changed' );
$( '#pwd' ).val( '' ).focus();
}
}
);
} );
} );
</script>
</body>
</html>
Posts: 75
Threads: 3
Joined: Apr 2018
Reputation:
2
02-24-2019, 09:11 PM
(This post was last modified: 02-24-2019, 09:12 PM by grumbleweed.
Edit Reason: typo
)
Not a bad idea, but it would be a bigish job to do it correctly, as it would involve a lot of testing, as once you enable a login people will try to break in.
I was tasked with making a pass protected admin area (by session) on a php based site I authored, one third of the coding time was making it, two thirds was debugging/testing it.
Posts: 55
Threads: 4
Joined: Sep 2018
Reputation:
4
I'd be happy if it was just hidden a little bit.
http://moode/ could just bring up the music play
http://moode/admin/ could be used to access the settings