Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ACF
acf-freeswitch-vmail
Commits
eebbecf9
Commit
eebbecf9
authored
Nov 17, 2013
by
Ted Trask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up authenticator to properly report fields
parent
01e6d7c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
authenticator-freeswitch-vmail.lua
authenticator-freeswitch-vmail.lua
+16
-3
No files found.
authenticator-freeswitch-vmail.lua
View file @
eebbecf9
--
Copy of authenticator-plaintext, plus added a
uthentication from voicemail DB
--
A
uthentication from voicemail DB
local
mymodule
=
{}
authenticator
=
require
(
"authenticator"
)
md5
=
require
(
"md5"
)
-- We will not list entries from the voicemail database, as you must use the freeswitch-vmail controller
-- to list/view/edit entries. Similarly, we will not allow deletion. We will only allow reading single
-- entries, as is done during authentication. These entries will be specified for table=authenticator.usertable
-- and field="". Roles and home page are hardcoded below.
mymodule
.
list_fields
=
function
(
self
,
tabl
)
return
nil
if
tabl
==
authenticator
.
usertable
then
return
{
""
}
else
return
{}
end
end
-- Do not list entries from vmail, must use vmail controller to view/edit
mymodule
.
read_field
=
function
(
self
,
tabl
,
field
)
return
nil
return
{}
end
-- We do not allow deletion
mymodule
.
delete_field
=
function
(
self
,
tabl
,
field
)
return
false
end
-- We do not allow writing
mymodule
.
write_entry
=
function
(
self
,
tabl
,
field
,
id
,
entry
)
return
false
end
...
...
@@ -34,6 +46,7 @@ mymodule.read_entry = function(self, tabl, field, id)
return
result
end
-- We do not allow deletion
mymodule
.
delete_entry
=
function
(
self
,
tabl
,
field
,
id
)
return
false
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment