summaryrefslogtreecommitdiff
path: root/modules/user/models
AgeCommit message (Collapse)Author
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-08-04Patch for ticket #1769. Remove the rows in groups_users when the user or the ↵Tim Almdal
group is deleted.
2011-04-23Fix ticket #1694. Correct Spelling of mininum_password_length to ↵Tim Almdal
minimum_password_length
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-15Follow on to 1057436b7c483c60b3c128fab993a3b78fac7093 -- cache theBharat Mediratta
users and groups as an array so that multiple calls will not call ORM_Iterator->current() repeatedly.
2010-12-15Cache the result of User_Model::groups() and Group_Model::users() andBharat Mediratta
invalidate it on save/delete for efficiency. Fixes #1529.
2010-10-25All modules should be named Xxx_Core for extensibility. Fixes #1458.Bharat Mediratta
2010-09-22Remove the 4 character minimum for group name length. Fixes ticket #1396.Bharat Mediratta
2010-09-14The full_name field is required to be NOT NULL. Not really sure whyBharat Mediratta
this is a hard requirement, but for now in User_Model::save() let's use the empty string if the field itself is null. Fixes ticket #1371.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-18Revert "Fix for ticket #491: Make user and group names translatable."Bharat Mediratta
This reverts commit 409121942590e12692eaf4e6e9e8b71bfe5ed60c.
2010-02-14Fix for ticket #491: Make user and group names translatable.Andy Staudacher
Also fixed a UI bug: No longer showing the edit user buttons to admins in the profile view (to be consistent with the requirements in the controller).
2010-02-02Fix a bug in valid_password() where an empty password was considered valid.Bharat Mediratta
2010-02-01Fix a bug in valid_name where it wasn't checking for name collisions on new ↵Bharat Mediratta
users.
2010-01-30Fix the valid_admin code -- it was considering all non-admins invalid.Bharat Mediratta
Fixes ticket #997 (highest prime under 1000!)
2010-01-29Strongly type the argument list to the model::validate method.Tim Almdal
2010-01-27Convert back to using ORM::factory(..., $id) instead of calling where().Bharat Mediratta
2010-01-25Make some exceptions for guests:Bharat Mediratta
1) They don't require email 2) Guest users aren't in the everybody group.
2010-01-20Stop using MY_ORM::original()Bharat Mediratta
2010-01-17Move model rules down into their validate() function for consistency.Bharat Mediratta
Change "in_use" error to "conflict" for consistency.
2010-01-16Convert Admin_Users_Controller, User_Model and Group_Model to useBharat Mediratta
model based validation.
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().
2010-01-16Don't pass MY_ORM::original() to update event handlers, since afterBharat Mediratta
parent::save() it'll be reset. Clone it first. This is an alternate fix for #978.
2009-12-17In Kohana 2.4, ORM no longer does the find_all() call for us when weBharat Mediratta
retrieve related ORMs. If we tack a find_all() on the end, it breaks the User_Definition interface so create User_Model::groups() and Groups_Model::users() as glue.
2009-11-26ORM::$rules now has a special meaning. Use $form_rules for ourBharat Mediratta
internal rules code.
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-11-21Make email a required field. We're using the Kohana default errorBharat Mediratta
messages when this fails, not the Gallery translation system so this is not a great solution. However, it's the same as the other model-based rules we have currently so it's no worse. Fixes ticket #897.
2009-10-28Make the user name a required field. Fixes ticket #852Tim Almdal
2009-10-19Simplify the user interface by moving the password reset functionality into ↵Tim Almdal
the user module Bagging the User_Definition and Group_Definition abstract classes and replacing them with interfaces with the same names. Make sure all the unit tests work.
2009-10-16Cleanup merge of user/group helpers into Identity interface. Reduce ↵Tim Almdal
redundant code in the user module and remove references to the Identity helper from the user module as the user module should be able to access things directly. Simplify the get_user_list api method to just accept an array of ids to return user objects for.
2009-10-06Encapsulate the user and group model in Gallery_User and Gallery_Group ↵Tim Almdal
classes which extend the User_Definition and Group_Definition classes defined in the Identity API
2009-08-09Require a valid url for users. Fixes ticket #612.Bharat Mediratta
2009-08-02Change the API for getting to the original state of an ORM.Bharat Mediratta
Old API: $obj->original("field_name") New API: $obj->original()->field_name This allows us to revert the varous xxx_updated events back to passing an original ORM as well as the the updated one. This makes for a cleaner event API. Old API: comment_updated($comment) { $comment->original("field_name") } Old API: comment_updated($old, $new) { $old->field_name }
2009-07-19More thorough fix for #421. Create User_Model::display_name() whichBharat Mediratta
uses the full name if there is one, or falls back to the name if that's all we have.
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-16Non-trivial changes to the event handling code:Bharat Mediratta
1) The item_updated event no longer takes the old and new items. Instead we overload ORM to track the original data and make that available via the item. This will allow us to move event publishing down into the API methods which in turn will give us more stability since we won't require each controller to remember to do it. 2) ORM class now tracks the original values. It doesn't track the original relationships (no need for that, yet) 3) Added new events: item_deleted group_deleted user_deleted
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-04-15Provate a way to set the hashed password directlyBharat Mediratta
2009-02-10Adding UI for site language selection and user language preference.Andy Staudacher
2009-01-10Use the theme's avatar as the default if Gravatar doesn't have one.Bharat Mediratta
2009-01-10Integrate Gravatar. Boy, that was easy.Bharat Mediratta
2008-12-29Relax the rules a bitBharat Mediratta
2008-12-19Implement admin user editing. It's still very rough. Trying toBharat Mediratta
figure out how to share forms between user and admin editing. Incremental improvement
2008-12-09Move code to delete users and add/remove users from groups into theBharat Mediratta
model.
2008-12-09move user::delete() to User_Model::delete()Bharat Mediratta
2008-11-18Synchronize the model rules with the database definitions and vice-versa.Tim Almdal
2008-11-16Create Forge::add_rules_from() which pulls validation rules from the model andBharat Mediratta
associates them with the form. This replaces the various _add_validation_rules() functions in the user and comment modules. Move user edit form into user helper for consistency with the comment module. Implement missing _form method in the user controller.
2008-11-15Revise the user login code.Bharat Mediratta
* Remove user registration link and popup from the theme; this shouldn't be done in a popup. Use ajaxform to simplify the way that we load the login popup. * Create form.html.php, this is a template for Forge based forms. * Move user validation rules into User_Model and let forms populate the rules into their forms as useful. * Undo r18688's changes regarding the REST code. We should never accept a null resource, this breaks the REST abstraction. * Change login and user controllers to use Forge which lets us delete login.html.php and user.html.php since those now are generated by the theme-owned form template