From: Jo-Philipp Wich Date: Wed, 18 Sep 2013 11:21:39 +0000 (+0200) Subject: luci2: wrap luci2.ui.crypt rpc call as LuCI2.ui.cryptPassword() X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=a04433cecfdf7ff86046291517ff93486a5c1c52 luci2: wrap luci2.ui.crypt rpc call as LuCI2.ui.cryptPassword() --- diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 4501181..745f955 100644 --- a/luci2/htdocs/luci2/luci2.js +++ b/luci2/htdocs/luci2/luci2.js @@ -1857,6 +1857,13 @@ function LuCI2() return _luci2._login_deferred; }, + cryptPassword: _luci2.rpc.declare({ + object: 'luci2.ui', + method: 'crypt', + params: [ 'data' ], + expect: { crypt: '' } + }), + _acl_merge_scope: function(acl_scope, scope) {