summaryrefslogtreecommitdiff
path: root/modules/user/controllers
AgeCommit message (Collapse)Author
2009-08-29Refactor all calls of p::clean() to SafeString::of() and p::purify() to ↵Andy Staudacher
SafeString::purify(). Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
2009-08-27Don't ask for csrf when we're resetting passwords. They're not gonna have ↵Bharat Mediratta
one. Duh! Fixes #642.
2009-07-29Clean up user form events. Thanks to Ben Smith (glooper).Bharat Mediratta
2009-07-25fix for ticket #574. The user->url database wasn't being set when the user ↵Tim Almdal
was updated via the admin panel.
2009-07-23Add form processing events:Bharat Mediratta
user_add_form_admin admin adding a user user_edit_form_admin admin editing a user user_add_form_admin_completed successfully added a user (admin) user_edit_form user editing their own settings user_edit_form_completed successfully edited a user (admin and user editing own settings)
2009-07-21In the logout link, urlencode the continue url so that ampersands, etcBharat Mediratta
don't break encapsulation. In the logout controller, don't run the url through url::redirect because that uses url::site(). Just set the Location header directly. This fixes ticket #483.
2009-07-16Add missing ) dropped in 8f9a943f.Bharat Mediratta
2009-07-01Fix a bunch of XSS vulnerabilities turned up by manual inspectionBharat Mediratta
using the checklist in ticket #385.
2009-06-10Actually save the url when editing user information.Bharat Mediratta
Fixes ticket #363.
2009-06-09Create a new method in MY_url.php "get_item_from_uri" which loads the itemTim Almdal
based on the uri. Then use this helper method in logout.php to insure that the guest user has access to the "continue" uri. If they don't redirect to the root album and let it deal with access issues. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-06-06Don't ask for CSRF token when trying to view the password reset form.Bharat Mediratta
2009-06-01Security pass over all controller code. Mostly adding CSRF checkingBharat Mediratta
and verifying user permissions, but there are several above-the-bar changes: 1) Server add is now only available to admins. This is a hard requirement because we have to limit server access (eg: server_add::children) to a user subset and the current permission model doesn't include that. Easiest fix is to restrict to admins. Got rid of the server_add permission. 2) We now know check permissions at every level, which means in controllers AND in helpers. This "belt and suspenders" approach will give us defense in depth in case we overlook it in one area. 3) We now do CSRF checking in every controller method that changes the code, in addition to the Forge auto-check. Again, defense in depth and it makes scanning the code for security much simpler. 4) Moved Simple_Uploader_Controller::convert_filename_to_title to item:convert_filename_to_title 5) Fixed a bug in sending notification emails. 6) Fixed the Organize code to verify that you only have access to your own tasks. In general, added permission checks to organize which had pretty much no validation code. I did my best to verify every feature that I touched.
2009-05-31Clean up view variablesBharat Mediratta
2009-05-27Regenerate the session id every time through login::_auth() to avoid session ↵Bharat Mediratta
trapping.
2009-05-27Use a random value for the password reset hash to reduce the chancesBharat Mediratta
that it can be guessed by an attacker.
2009-05-26White space fixesChad Kieffer
2009-05-21Changed Name label to Username, closes ticket #93Chad Kieffer
2009-05-20Move the first-admin-login steps out of the user module and into an event ↵Bharat Mediratta
listener in core
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Don't allow admins to delete the guest user. Fixes ticket #213Bharat Mediratta
2009-05-13Variety of changes to the way we do user editing:Bharat Mediratta
1) Allow admins to edit the admin bit of other admins 2) Don't allow admins to delete themselves (partial fix for ticket #213) 3) Inline user::update(). Don't do form processing in helper methods! 4) Inline user::_get_edit_form() so that we can treat edit forms differently. Trying to hard to make common functions makes for weird edge cases.
2009-05-13Log password reset attempts. Fixes ticket #251.Bharat Mediratta
2009-05-10After ajax login, just reload the current page.Bharat Mediratta
2009-04-24add_group() was not getting $form before using it.Bharat Mediratta
2009-04-09Fix for ticket 181: don't ignore the locale option when adding usersAndy Staudacher
2009-04-05Don't do graphics detection in core_installer::install() because thatBharat Mediratta
gets run at scaffolding::package() time, not on the target machine. Instead, create a core module variable to trigger running graphics::choose_default_toolkit() on the first admin login after install. Fixes ticket #206.
2009-04-03Fix for ticket #201. Tim Almdal
1) create common update function so processing consistent between the user edit and admin edit. 2) created common private helper function to build the user edit form the same way. So a user can now change their user name if the new one doesn't exist.
2009-03-25Fix for ticket #181. Valiant take note of the change toTim Almdal
admin_users.php. I had to remove the check for the locale as it hasn't been added to the form.
2009-03-17Fix the locale field in the change user settings formAndy Staudacher
2009-03-17Fix edit user form handlerAndy Staudacher
2009-03-16Proxy the url through _auth() to user::get_login_form()Bharat Mediratta
2009-03-16Clean up the login, maintenance login and required-top-level-login code.Bharat Mediratta
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
2009-03-11Bag the header("Location:", ...);exit() and replace withTim Almdal
url:site(url::abs_file(...)) Create a login_page.html to be used when there is no guest access to the root album. It doesn't have a sidebar nor breadcrumb.
2009-03-11Force a login if everybody does not have access to the rootTim Almdal
item. ticket #118.
2009-02-10Adding UI for site language selection and user language preference.Andy Staudacher
2009-02-10Line length fixBharat Mediratta
2009-02-04Use the matches validation rule in order to perform cross fieldTim Almdal
validation between the password and password2 fields
2009-02-04Complete the Recover Password functionality (Ticket #5).Tim Almdal
This change requires a reinstall in order to pick up the new hash field in the user table.
2009-02-04A preview of the password reset functionality. What's working... youTim Almdal
can start to logon, request the password to be reset, and an email is sent to the users email address. If you click on the link you get an unformatted form. But its a start :-)
2009-02-03Add a confirmation password input field that must match the primaryTim Almdal
password field in order for the update to succeed. If there is no data entered in the primary password field, the confirmation field is ignored. Addresses Trac Ticket #4
2009-01-29Fix lint errorsBharat Mediratta
2009-01-28Fully implement the user administration backend with drag/drop to addBharat Mediratta
users to groups.
2009-01-28Add drag and drop support to the admin_users interface. This is stillBharat Mediratta
a work in progress but it actually works mostly.
2009-01-25Undo the adding underscores to the id on forge generated formsTim Almdal
2009-01-24Supply a form id on all forms. This id can be used by modules otherTim Almdal
than the originating module to provide additional functionality to the form.
2009-01-22toggling of user edit panel works now.Jakob Hilden
added groups to the admin_user view, so you will eventually be able to edit users, groups and memberships on one admin page.
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-12Updated for new Form_Submit API.Bharat Mediratta
OLD: $form->submit("Foo") --> <input type="submit" value="Foo"> New: $form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo"> Mostly we don't care what the button is so we leave the name blank.
2009-01-10Big set of changes to comments, with related changes to akismet andBharat Mediratta
user modules. * Don't delete vars when we delete a module. This makes reinstalling a module a lot easier. * Add user::lookup() as the preferred way to load a user, so that other modules don't delve into the user module (that'd be a problem when we swap out user modules) * Notify site admins if Akismet is not fully configured * Bundle all server variables into the comment so that if/when we re-check the comment, we are not using the server info from the site admin's request. * Update Akismet to grab request context data from the comment * Pre-seed comment fields if we have a logged in user. Update comment::create() API to clarify it for this. * Delete comment::update(), that's a controller function. * Add url to User_Model * Add author_name() author_email() and author_url() to Comment_Model. It'll return the appropriate values depending on whether the comment was left by a logged in user or a guest. * Use resetForm() instead of clearForm() when we reload the comment form after ajax submit, this way we preserve the pre-seeded values. * In the user profile page, ignore blank passwords.
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.