changeset 740:6871ba08d521

add Hosting.change_password()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 07 Jul 2016 19:20:26 -0600
parents f8a7cc1fd3f6
children 9f58b398a892
files core/src/luan/modules/host/Hosting.luan
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r f8a7cc1fd3f6 -r 6871ba08d521 core/src/luan/modules/host/Hosting.luan
--- a/core/src/luan/modules/host/Hosting.luan	Wed Jul 06 17:47:12 2016 -0600
+++ b/core/src/luan/modules/host/Hosting.luan	Thu Jul 07 19:20:26 2016 -0600
@@ -80,4 +80,10 @@
 	return host.change_domain(old_domain,new_domain,password)
 end
 
+function M.change_password(domain,old_password,new_password)
+	local socket = "socket:" .. domain .. ":" .. M.port
+	local host = Rpc.remote(socket)
+	return host.change_password(domain,old_password,new_password)
+end
+
 return M