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 4501181..745f955 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)
                {