This commit is contained in:
brindosch 2019-08-25 18:22:42 +02:00
parent 10b853c990
commit 83806c6361

View File

@ -165,6 +165,22 @@ function sendToHyperion(command, subcommand, msg)
// ----------------------------------------------------------- // -----------------------------------------------------------
// wrapped server commands // wrapped server commands
// Test if admin requires authentication
function requestRequiresAdminAuth()
{
sendToHyperion("authorize","adminRequired");
}
// Test if the default password needs to be changed
function requestRequiresDefaultPasswortChange()
{
sendToHyperion("authorize","newPasswordRequired");
}
// Change password
function requestChangePassword(oldPw, newPW)
{
sendToHyperion("authorize","newPassword",'"password": "'+oldPw+'", "newPassword":"'+newPw+'"');
}
function requestAuthorization() function requestAuthorization()
{ {
sendToHyperion("authorize","login",'"password": "hyperion"'); sendToHyperion("authorize","login",'"password": "hyperion"');