summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-10-01 19:37:51 +0000
committerTed Trask <ttrask01@yahoo.com>2014-10-01 19:37:51 +0000
commitca2c56d0457cb40517ca744e177e1d0060fdfc2c (patch)
treee3220f55ded75360ae92aac7bd825968dd94bc0c
parentec95c20dae9fe8f5c6bc57e53e1f318639b807e7 (diff)
downloadacf-core-ca2c56d0457cb40517ca744e177e1d0060fdfc2c.tar.bz2
acf-core-ca2c56d0457cb40517ca744e177e1d0060fdfc2c.tar.xz
Remove logon/logoff and logon/logon from password home options
Both of these cause problems if selected
-rw-r--r--app/acf-util/password-model.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/acf-util/password-model.lua b/app/acf-util/password-model.lua
index 0016e2f..54faf4b 100644
--- a/app/acf-util/password-model.lua
+++ b/app/acf-util/password-model.lua
@@ -70,18 +70,19 @@ local function get_blank_user(self)
end
end
- -- Call into ?? controller to get the list of home actions
+ -- Call into roles library to get the list of home actions
if not avail_homes then
avail_homes = {""}
local tmp1, tmp2 = roles.get_all_permissions(self)
table.sort(tmp2)
for i,h in ipairs(tmp2) do
- avail_homes[#avail_homes+1] = h
+ if h ~= "/acf-util/logon/logoff" and h ~= "/acf-util/logon/logon" then
+ avail_homes[#avail_homes+1] = h
+ end
end
end
- -- Passwords are set to empty string
- result.value.userid = cfe({ value=user, label="User id", seq=1 })
+ result.value.userid = cfe({ value="", label="User id", seq=1 })
result.value.username = cfe({ value="", label="Real name", seq=2 })
result.value.password = cfe({ type="password", value="", label="Password", seq=4 })
result.value.password_confirm = cfe({ type="password", value="", label="Password (confirm)", seq=5 })