luci-mod-admin-full: limit dns cachesize to 10000
[project/luci.git] / modules / luci-mod-admin-full / luasrc / model / cbi / admin_system / admin.lua
index 8e24336..493a735 100644 (file)
@@ -1,5 +1,5 @@
 -- Copyright 2008 Steven Barth <steven@midlink.org>
--- Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
+-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
 -- Licensed to the public under the Apache License 2.0.
 
 local fs = require "nixio.fs"
@@ -21,7 +21,7 @@ function s.cfgsections()
        return { "_pass" }
 end
 
-function m.on_commit(map)
+function m.parse(map)
        local v1 = pw1:formvalue("_pass")
        local v2 = pw2:formvalue("_pass")
 
@@ -36,6 +36,8 @@ function m.on_commit(map)
                        m.message = translate("Given password confirmation did not match, password not changed!")
                end
        end
+
+       Map.parse(map)
 end