luci2: wrap luci2.ui.crypt rpc call as LuCI2.ui.cryptPassword()
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Sep 2013 11:21:39 +0000 (13:21 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Sep 2013 11:21:39 +0000 (13:21 +0200)
luci2/htdocs/luci2/luci2.js

index 4501181a0831e38be3883d3575f2b7a5e1f52171..745f9554449bca21dd299eb7bedbaf82060ccec8 100644 (file)
@@ -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)
                {