summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user.php
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-09-11Implement IdentityProvider_Gallery_Driver::admin_user() properly suchBharat Mediratta
that it's not hardcoded to return the user with id 2. Create user::admin_user() which finds an appropriate admin and returns it. Fixes #1358.
2010-04-17Change the key for invalid passwords from "invalid" toBharat Mediratta
"invalid_password" to remove ambiguity.
2010-04-17Add user::valid_username() as a validation helper.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-02Require the current password to change your password.Bharat Mediratta
Fixes ticket #585. Separate out the password change form from the regular edit user form. Require the old password to enter a new one. While I'm at it, roll the password strength javascript into a Form_Script element so that we can get rid of the old view (which incidentally fixes a bug where the password strength meter would go away on form errors).
2010-01-16Convert Admin_Users::add_user() to use model based validation. GetBharat Mediratta
the rules and business logic out of the form and user::create(), and move it into User_Model::save().
2009-12-18Convert html::specialchars() to html::chars()Bharat Mediratta
2009-11-26Convert all DB where() calls to take 3 arguments.Bharat Mediratta
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-25Preliminary work to cut over to Kohana 2.4Bharat Mediratta
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
2009-10-27Fire the logon_event when the user logs on. Cleanup some old code from the ↵Tim Almdal
user/helpers/user.php file."
2009-10-24Remove a redundant comment, change the name of the identity change event to ↵Tim Almdal
'identity_before_change' and change the name of 'login::get_login_form()' to 'login::get_form()'
2009-10-23Created user.css. Moved user-related form css to the new sheet.Chad Kieffer
2009-10-23move controllers and views to the user module to make the Identity Provider ↵Tim Almdal
refactor smaller
2009-10-13refactor the user and group helpers into the gallery core module. 2 reason, ↵Tim Almdal
first it makes sense that users and groups are a gallery requirement and belong in core. secondly, prepares the way for the Identity refactor.
2009-10-13remove the unused private function user::_md5Salt()Tim Almdal
2009-10-13refactor locale related functionality out of the user module and into the ↵Tim Almdal
gallery module.
2009-10-09Add support for the in filter to get_user_list and get_group_list. Convert ↵Tim Almdal
the notifications to use user::get_user_list instead of accessing the table directly.
2009-10-09Convert direct lookups for the user table using ORM to using the ↵Tim Almdal
user::lookup_by_name and user_lookup API methods. Convert the Admin_User controller Convert the login and password change controller Change the item model to call user::lookup to get the owner. On the log model, delete the relationship between the log and user table, and replace with a call to user::lookup (cherry picked from commit 194cc3b27a73afe5119da9f09407c1e068dc6fa3) Create the get_user_list, lookup_by_name, lookup_by_hash and get_group_list api functions
2009-10-08Change the users.php controller so its no longer restful. The problem with ↵Tim Almdal
our approach to restfulness is that it assumes that the resource will be found in the gallery database. It may well be there, but in the case of using plugable drivers for users management, there are no guarantees that it is in our database or it could be in a ldap directory. So it was just easier to remove the restfulness and just call user::lookup instead. (cherry picked from commit b3211cb2a8282556d410c91771baeb764d47ed10)
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Convert gDialog and gCancel over to g-dialog and g-cancel. Refactor CSS id's ↵Chad Kieffer
and classes in the login/reset password dialog.
2009-09-04Add new locale preferences: Adding per session (cookie) locale preferences ↵Andy Staudacher
and check the browser's / OS' locale preferences. Ticket 582.
2009-08-29Fix active() to not use user::guest() as the fallback for our Session::get() ↵Bharat Mediratta
call.
2009-07-29Clean up user form events. Thanks to Ben Smith (glooper).Bharat Mediratta
2009-07-25Pass the variable when the "user_edit_form" event is fired.Tim Almdal
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-17Rename "locale" helper to "locales" to avoid conflicting with PHP 5.3.Bharat Mediratta
Fixes ticket #194
2009-07-16Second non-trivial change to the event code. We now publish modelBharat Mediratta
related events from within the model handling code. The only exception to this currently is item_created which is challenging because we have to save the item using ORM_MPTT::add_to_parent() before the object itself is fully set up. When we get that down to one call to save() we can publish that event from within the model also.
2009-07-02Use Unicode characters (looks better to translator, and fixes normalization ↵Andy Staudacher
issue in translation server)
2009-05-31Properly call user::login when we automatically login the admin userBharat Mediratta
immediately after install. Fixes ticket #323.
2009-05-26White space fixesChad Kieffer
2009-05-25Changed name to username in user admin form labelsChad Kieffer
2009-05-24Use phpass as our hashing mechanism, and check for it first (insteadBharat Mediratta
of checking G1/G2 techniquew first).
2009-05-21Changed Name label to Username, closes ticket #93Chad Kieffer
2009-05-18Move 3rd party PasswordHash library into the "lib" dir forBharat Mediratta
consistency. No 3rd party libs in "libraries", at least for now.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat 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-12Add group::lookup_by_name()Bharat Mediratta
2009-05-12Fix a comment.Bharat Mediratta
2009-04-18Add user::lookup_by_name()Bharat Mediratta
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-16Switch the locale::$locales data structure to be an array instead of aBharat Mediratta
stdClass because we're not allowed to asort() stdClass objects in PHP 5.2.6.
2009-03-16Get rid of the extra robust code we had in here to make theBharat Mediratta
scaffolding work when the Gallery wasn't installed yet. Now we force users through the installer.
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-08Log the user in as admin after running the web installer, and giveBharat Mediratta
them a nice "Welcome to Gallery 3" dialog. The text in there needs a little work but it's a start. In the process, re-build the install.sql using the scaffolding code.
2009-02-19Differentiate between available and installed languages. Provide admin UI to ↵Andy Staudacher
install languages. See: https://apps.sourceforge.net/trac/gallery/ticket/75 (first step for this task)