mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Js apis
This commit is contained in:
parent
10b853c990
commit
83806c6361
@ -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"');
|
||||||
|
Loading…
Reference in New Issue
Block a user