mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Js apis
This commit is contained in:
		| @@ -165,6 +165,22 @@ function sendToHyperion(command, subcommand, msg) | ||||
| // ----------------------------------------------------------- | ||||
| // 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() | ||||
| { | ||||
| 	sendToHyperion("authorize","login",'"password": "hyperion"'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user