summaryrefslogtreecommitdiffstats
path: root/app/acf-util/logon-controller.lua
Commit message (Collapse)AuthorAgeFilesLines
* Modify logon to move logic to the model, leaving redirect in the controllerTed Trask2014-10-011-35/+26
|
* Remove all calls to 'module' in preparation for move to Lua 5.2Ted Trask2013-10-171-12/+14
| | | | | Use mymodule parameter for module definition. This was also helpfule in revealing places where the code relied on the global environment.
* Add home config option to acf.conf for default home pageTed Trask2013-05-301-1/+3
| | | | The default_prefix and default_controller logic was broken, and is now removed
* Change logon/logout action to logon/logoff and standardize on logon/off ↵Ted Trask2013-05-301-5/+5
| | | | instead of login/out
* Changed forms to always use 'submit' as name of submit button, plus allow ↵Ted Trask2012-02-221-1/+1
| | | | multiple submit buttons
* Modified html template to set focus to first useable fieldTed Trask2012-02-061-1/+2
|
* Changed acf-util/logon controller to use standard viewTed Trask2012-02-031-3/+3
|
* Added home page (action) to user parameters and redirect there after loginTed Trask2010-10-061-1/+8
| | | | Moved get_all_permissions function from acf-util/roles-model to lib/roles
* Made major changes to authenticator and roles to improve efficiency.Ted Trask2010-09-281-2/+9
| | | | | | | | | | Changed authenticator.lua to request individual users, rather than always loading everyone. Modified get_userinfo and removed get_userinfo_roles and get_userinfo_skin to remove unnecessary cfe processing. This was especially bad when retrieving the cfe options for skins and roles. This does break the interface used by other modules like acf-tinydns. Validation and cfe processing were moved into password-model, where they belong. Added global variables to authenticator and roles libraries so they can reuse data that was already generated. Modified logon-controller to only check for zero users if logon fails.
* Removed redundant/buggy basename and dirname functions. Added ↵Ted Trask2009-12-281-2/+2
| | | | | | | parse_redir_string to www controller. Removed basename and dirname from mvc and fs, use posix functions instead. parse_path_info was buggy and used 2 ways, rewrote and created parse_redir_string for backwards parsing.
* Modified permissions from controller:action to prefix/controller/action.Ted Trask2009-12-211-4/+4
| | | | | Had to move welcome to the acf-util prefix. Changed format of roles files: old ACF format will still work, but authenticator format won't.
* Modified logonredirect to discard get/post data when don't follow login ↵Ted Trask2009-06-101-0/+8
| | | | redirect.
* Removed built-in users alpine and foo from core, and instead redirect to ↵ttrask2009-03-201-0/+11
| | | | | | create new user when none exist. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1738 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified acf_www and logon-controller to redirect to logon on dispatch error ↵Ted Trask2008-08-221-2/+3
| | | | | | and redirect to requested page after logon. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1402 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified logon and password to use new redirect_to_referrer functionality.Ted Trask2008-07-041-1/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1279 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Remove clientdata processing from logon-modelTed Trask2008-06-061-1/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1207 ab2d0c66-481e-0410-8bed-d214d4d58bed
* For cfe.type='form', use cfe.option as the command to save the form data ↵Ted Trask2008-05-151-2/+2
| | | | | | i.e. can be used as button name. Modified pages that use 'form' to also use 'option'. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1122 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Change inheritance from worker->self->parent to self->worker->parent as ↵Ted Trask2008-05-141-2/+1
| | | | | | | | | | found in wiki. Move the permissions stuff out of mvc.dispatch into new acf_www.dispatch. Moved redirect from mvc to acf_www and made to parse path. Changed the order of parameters to template and passed all to the view. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1118 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Removing debug information from Welcome-page.Mika Havela2008-05-021-2/+3
| | | | | | Redirecting to welcome-page at successful logon. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1096 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Modified cfe, removing option, errtxt, and name, and adding label - This may ↵Ted Trask2008-04-301-3/+5
| | | | | | | | | | | | break things. Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Added cfe support to logonTed Trask2008-04-281-11/+12
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1049 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Replaced all list_redir functions with redirect in mvc.lua, implemented a ↵Ted Trask2008-04-241-4/+1
| | | | | | default_action string in each controller, removing the on_load functions git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1037 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Ted's Logon/permissions changesTed Trask2008-04-211-17/+25
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1030 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Redirecting user to logon page when they successfully logged out.Mika Havela2008-04-041-1/+8
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@946 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Changes effect only the log in|out functions. Will work now. Next working on ↵Mike Mason2008-01-261-34/+1
| | | | | | updating to prevent misuse of the login function. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@656 ab2d0c66-481e-0410-8bed-d214d4d58bed
* Adding logon-status and finally with nangel's help got this workingMike Mason2008-01-231-27/+21
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@632 ab2d0c66-481e-0410-8bed-d214d4d58bed
* on logon, the session table actually gets savedNathan Angelacos2007-12-221-3/+2
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@451 ab2d0c66-481e-0410-8bed-d214d4d58bed
* logon works - but session table is not saved yetNathan Angelacos2007-12-221-5/+6
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@450 ab2d0c66-481e-0410-8bed-d214d4d58bed
* logon updatesNathan Angelacos2007-12-211-2/+1
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@446 ab2d0c66-481e-0410-8bed-d214d4d58bed
* WIPNathan Angelacos2007-12-091-3/+5
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@422 ab2d0c66-481e-0410-8bed-d214d4d58bed
* added logevent function (hardcoded to write to /var/log/acf.log)Nathan Angelacos2007-12-091-18/+14
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@421 ab2d0c66-481e-0410-8bed-d214d4d58bed
* logon model stubbed inNathan Angelacos2007-12-091-9/+15
| | | | git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@420 ab2d0c66-481e-0410-8bed-d214d4d58bed
* moved core files to new dir structurev2.0_alpha1Natanael Copa2007-07-271-0/+60
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@219 ab2d0c66-481e-0410-8bed-d214d4d58bed