Bharat Mediratta
69897b4c66
Fix the valid_admin code -- it was considering all non-admins invalid.
...
Fixes ticket #997 (highest prime under 1000!)
2010-01-30 16:20:44 -08:00
Tim Almdal
c4e3604315
Strongly type the argument list to the model::validate method.
2010-01-29 14:04:27 -08:00
Bharat Mediratta
f0ae2c8165
Localize edit form error messages.
2010-01-28 20:55:38 -08:00
Bharat Mediratta
4b32a71afc
Convert back to using ORM::factory(..., $id) instead of calling where().
2010-01-27 22:34:11 -08:00
Bharat Mediratta
b6dab323ac
Use ORM to create the users since now our validation can handle doing
...
it the right way. Set a default email address for admins.
2010-01-25 20:42:48 -08:00
Bharat Mediratta
01dfa29888
Make some exceptions for guests:
...
1) They don't require email
2) Guest users aren't in the everybody group.
2010-01-25 20:40:44 -08:00
Bharat Mediratta
fecac4a859
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
...
Conflicts:
modules/gallery/tests/xss_data.txt
2010-01-23 16:29:10 -08:00
Tim Almdal
b01fce613b
Remove the g-right class on groups element on the manage user/groups page. fixes ticket #911
2010-01-22 14:16:41 -08:00
Tim Almdal
df313cac56
Change the check_environment method in the module helper and the module installers to can_activate to reflect that it is doing more than just checking the environment.
2010-01-22 12:30:17 -08:00
Tim Almdal
ae568b6182
Refactor the identity provider installation in to a common helper method (change_provider) with an initialization callback.
2010-01-22 12:09:11 -08:00
Tim Almdal
603c3049a1
Treat identity providers just like other modules and use the admin_module to
...
install and switch to a different identity provider.
2010-01-22 09:39:29 -08:00
Bharat Mediratta
e56318d07f
Don't try to access ORM::$changed externally; it's protected.
2010-01-22 01:48:03 -08:00
Bharat Mediratta
2f9077e26a
Simplify the test using the test helper.
2010-01-21 19:08:40 -08:00
Bharat Mediratta
b0ff4418d2
Stop using MY_ORM::original()
2010-01-20 22:55:22 -08:00
Bharat Mediratta
f0780486ee
Fix typo: edit_user -> add_user.
2010-01-20 22:53:51 -08:00
Bharat Mediratta
b23f62259d
Stop using MY_ORM::original().
2010-01-20 22:52:11 -08:00
Bharat Mediratta
76da85a1a0
Extend Gallery_Unit_Test_Case instead of Unit_Test_Case.
2010-01-19 22:38:19 -08:00
Bharat Mediratta
f20fa2cfed
Change IdentityProvider::create_user() to take $email as well, since that's a required
...
parameter for the Gallery driver.
2010-01-17 20:37:25 -08:00
Bharat Mediratta
ab7be17b7f
Switch to model based validation approach.
2010-01-17 20:17:50 -08:00
Bharat Mediratta
5162e35d49
Use an empty password for the guest user.
2010-01-17 17:54:14 -08:00
Bharat Mediratta
cfb27dde02
Adjust installers to work with model based validation.
2010-01-17 13:28:24 -08:00
Bharat Mediratta
9488684220
Move model rules down into their validate() function for consistency.
...
Change "in_use" error to "conflict" for consistency.
2010-01-17 12:30:24 -08:00
Bharat Mediratta
5c49c041e7
Use "(string) $form" instead of "$form->__toString()"
2010-01-16 22:42:02 -08:00
Bharat Mediratta
4a2d5bc9e2
Convert Users_Controller to model based validation.
2010-01-16 21:24:18 -08:00
Bharat Mediratta
6a4dda9bde
Convert Admin_Users_Controller, User_Model and Group_Model to use
...
model based validation.
2010-01-16 21:15:12 -08:00
Bharat Mediratta
a691dcc63c
Convert Admin_Users::add_user() to use model based validation. Get
...
the rules and business logic out of the form and user::create(), and
move it into User_Model::save().
2010-01-16 19:58:55 -08:00
Bharat Mediratta
7f20f66079
Whitespace.
2010-01-16 18:00:02 -08:00
Bharat Mediratta
ff728b3ccd
Whitespace.
2010-01-16 17:51:57 -08:00
Bharat Mediratta
dcf4b5e71a
Don't pass MY_ORM::original() to update event handlers, since after
...
parent::save() it'll be reset. Clone it first.
This is an alternate fix for #978 .
2010-01-16 00:13:28 -08:00
Bharat Mediratta
058a84ed76
Convert ORM::in() to ORM::where(.., "IN", ..) for K24 compatibility.
2010-01-06 17:04:44 -08:00
Bharat Mediratta
bff7b393ec
Stop checking the exact nature of all grups after install. It doesn't add any value.
2010-01-02 14:02:41 -08:00
Bharat Mediratta
057e8d09af
Convert a bunch of leftover kohana::show_404 calls to throw
...
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-23 20:51:33 -08:00
Bharat Mediratta
eb047d7f5d
ORM relations now require you to do find_all() or count_all() to get the results.
2009-12-23 13:31:52 -08:00
Bharat Mediratta
c10386fe87
Convert html::specialchars() to html::chars()
2009-12-18 01:05:02 -08:00
Bharat Mediratta
0736cf203b
In Kohana 2.4, ORM no longer does the find_all() call for us when we
...
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-12-17 21:32:53 -08:00
Bharat Mediratta
1fd0e14359
Convert all DB where() calls to take 3 arguments.
...
Convert all open_paren() calls to and_open() or or_open() as appropriate.
2009-11-26 12:09:04 -08:00
Bharat Mediratta
2ee38b3d8e
ORM::$rules now has a special meaning. Use $form_rules for our
...
internal rules code.
2009-11-26 11:36:09 -08:00
Bharat Mediratta
0121bfd585
ORM::orderby -> ORM::order_by
2009-11-25 19:26:52 -08:00
Bharat Mediratta
2e420522ec
Preliminary work to cut over to Kohana 2.4
...
- 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-25 13:22:24 -08:00
Bharat Mediratta
38233c67a2
Merge branch 'master' of git@github.com:gallery/gallery3
2009-11-21 11:36:27 -08:00
Bharat Mediratta
d6695e83e2
Make email a required field. We're using the Kohana default error
...
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-21 11:17:38 -08:00
Tim Almdal
6bdb8c3d55
Correct inconsistent captialization. Fixes #906
2009-11-21 09:36:19 -08:00
Bharat Mediratta
1067e68292
Redesign the way that we consider page types to create buckets of page
...
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-17 14:04:45 -08:00
Chad Kieffer
a6f1d3ad44
Remove g-dialog-link from special groups delete button (registered users, everybody), it's supposed to be disabled. Updated wording of headings and instructions.
2009-11-14 23:31:14 -07:00
Chad Kieffer
68886627cf
A few more g- prefix updates for the user module, this should be it.
2009-11-14 15:48:24 -07:00
Chad Kieffer
18a1681569
Added comments to user.css
2009-11-14 14:09:17 -07:00
Chad Kieffer
766d49c461
Fix floated group rows when more than one row exists. Attach g- before all css ids and classes for consistency. Other minor layout adjustments.
2009-11-14 14:03:11 -07:00
Chad Kieffer
d29d339ea0
Move the password strength image out of css and into an images folder.
2009-11-14 13:23:23 -07:00
Chad Kieffer
2bd4fa4b43
Remove g-actions, it doesn't serve any real purpose in styling or JavaScript.
2009-11-08 21:46:09 -07:00
Chad Kieffer
dbe6476255
Remove width class from add group form, it sizes the form's elements, not the form itself.
2009-11-06 20:26:09 -07:00