summaryrefslogtreecommitdiff
path: root/modules/user
AgeCommit message (Collapse)Author
2010-02-02Fix a bug in valid_password() where an empty password was considered valid.Bharat Mediratta
2010-02-01Localize validation errors.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-31Force all non-guest users to have an email address since that'sBharat Mediratta
required in model validation. Without this, any save on a user without email will fail which means that you can't log in. Bump user module to version 3.
2010-01-31Fix lots of warnings that pop up when we're in E_STRICT mode. They'reBharat Mediratta
mostly issues around uninitialized variables, calling non-static functions in a static context, calling Session functions directly instead of on its singleton, passing non-variables by reference, and subclasses not using the same interface as the parent class.
2010-01-30Don't override the password in the database if it's empty in the form.Bharat Mediratta
Fixes ticket #995.
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-28Localize edit form error messages.Bharat Mediratta
2010-01-27Convert back to using ORM::factory(..., $id) instead of calling where().Bharat Mediratta
2010-01-25Use ORM to create the users since now our validation can handle doingBharat Mediratta
it the right way. Set a default email address for admins.
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-23Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_devBharat Mediratta
Conflicts: modules/gallery/tests/xss_data.txt
2010-01-22Remove the g-right class on groups element on the manage user/groups page. ↵Tim Almdal
fixes ticket #911
2010-01-22Change the check_environment method in the module helper and the module ↵Tim Almdal
installers to can_activate to reflect that it is doing more than just checking the environment.
2010-01-22Refactor the identity provider installation in to a common helper method ↵Tim Almdal
(change_provider) with an initialization callback.
2010-01-22Treat identity providers just like other modules and use the admin_module toTim Almdal
install and switch to a different identity provider.
2010-01-22Don't try to access ORM::$changed externally; it's protected.Bharat Mediratta
2010-01-21Simplify the test using the test helper.Bharat Mediratta
2010-01-20Stop using MY_ORM::original()Bharat Mediratta
2010-01-20Fix typo: edit_user -> add_user.Bharat Mediratta
2010-01-20Stop using MY_ORM::original().Bharat Mediratta
2010-01-19Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.Bharat Mediratta
2010-01-17Change IdentityProvider::create_user() to take $email as well, since that's ↵Bharat Mediratta
a required parameter for the Gallery driver.
2010-01-17Switch to model based validation approach.Bharat Mediratta
2010-01-17Use an empty password for the guest user.Bharat Mediratta
2010-01-17Adjust installers to work with model based validation.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-16Use "(string) $form" instead of "$form->__toString()"Bharat Mediratta
2010-01-16Convert Users_Controller to model based validation.Bharat Mediratta
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-16Whitespace.Bharat Mediratta
2010-01-16Whitespace.Bharat Mediratta
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.
2010-01-06Convert ORM::in() to ORM::where(.., "IN", ..) for K24 compatibility.Bharat Mediratta
2010-01-02Stop checking the exact nature of all grups after install. It doesn't add ↵Bharat Mediratta
any value.
2009-12-23Convert a bunch of leftover kohana::show_404 calls to throwBharat Mediratta
Kohana_404_Exception instead. These are the ones where we used a lower-case 'k' so my previous filter didn't catch it.
2009-12-23ORM relations now require you to do find_all() or count_all() to get the ↵Bharat Mediratta
results.
2009-12-18Convert html::specialchars() to html::chars()Bharat Mediratta
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-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-26ORM::$rules now has a special meaning. Use $form_rules for ourBharat Mediratta
internal rules code.
2009-11-25ORM::orderby -> ORM::order_byBharat Mediratta
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-21Merge branch 'master' of git@github.com:gallery/gallery3Bharat Mediratta
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-11-21Correct inconsistent captialization. Fixes #906Tim Almdal
2009-11-17Redesign the way that we consider page types to create buckets of pageBharat Mediratta
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
2009-11-14Remove g-dialog-link from special groups delete button (registered users, ↵Chad Kieffer
everybody), it's supposed to be disabled. Updated wording of headings and instructions.