Bharat Mediratta
7116f820ca
Remove the 4 character minimum for group name length. Fixes ticket #1396 .
2010-09-22 21:43:44 -07:00
Bharat Mediratta
90ba0f9237
Show the number of photos/albums the user owns in the Admin > Users
...
page, and improve the message to explain what's going to happen to the
deleted user's items. Partial fix for #1344 , which I can't reproduce
now.
2010-09-08 00:50:30 -07:00
Tim Almdal
a453170727
Merge branch 'dialog' of github.com:gallery/gallery3 into dialog
2010-08-01 08:31:09 -07:00
Tim Almdal
fc580037e7
Merge branch 'master' into dialog
2010-08-01 08:26:39 -07:00
Bharat Mediratta
a5f701951e
Add a localized error message for missing usernames. Fixes ticket #1266 .
2010-08-01 01:33:59 -07:00
Bharat Mediratta
7607e1f932
Full pass over all the JSON encoding and JS dialog code. We now abide
...
by the following rules:
1) An initial dialog or panel load can take either HTML or JSON, but
the mime type must accurately reflect its payload.
2) dialog form submits can handle a pure HTML response, but the mime
type must also be correct. This properly resolves the problem
where the reauth code gets a JSON response first from the reauth
code, and then an HTML response when you reauth and continue on to
a given form -- try it out with Admin > Settings > Advanced.
3) All JSON replies must set the mime type correctly. The json::reply
convenience function does this for us.
4) By default, any HTML content sent back in the JSON response should be
in the "html" field, no longer the "form" field.
The combination of these allows us to stop doing boilerplate code like
this in our controllers:
// Print our view, JSON encoded
json::reply(array("form" => (string) $view));
instead, controllers can just return HTML, eg:
// Print our view
print $view;
That's much more intuitive for developers.
2010-07-31 21:16:17 -07:00
Tim Almdal
89d18c0714
Partial fix for #1225 addresses the issues with the user edit forms.
2010-07-31 15:44:55 -07:00
Tim Almdal
2cb87631b7
Partial fix for #1225 addresses the issues with the user edit forms.
2010-07-23 23:05:39 -07:00
Bharat Mediratta
af8bb05d5d
Show the old group name in the error message when we fail to modify a group. Fixes ticket #1233 .
2010-07-20 15:33:48 -07:00
Bharat Mediratta
e5b1a4fc23
Fix a bunch of missing or invalid error messages. Fixes ticket #1232 .
2010-07-20 15:21:44 -07:00
Bharat Mediratta
112582daeb
Add internationalized error messages for adding and editing groups.
2010-07-20 12:18:03 -07:00
Tim Almdal
dbf3199e46
Fix for ticket #1181 . Use $.getJSON to retrieve the json contents of the dialog. Convert all the controllers
...
that create the data to go into a dialog to return the html as part of a json object.
2010-07-06 14:12:01 -07:00
ckieffer
f1076590f1
Add page_title to admin views. Closes #1038 .
2010-04-30 00:08:37 -06:00
Bharat Mediratta
c3c2b45280
Update the copyright to 2010. It's only 3 months into the year :-)
2010-03-03 10:15:34 -08:00
Bharat Mediratta
f631c2a0e5
Fix up Admin_Users_Controller() form handling now that user_form.html
...
is gone. Fixes ticket #1005 .
2010-02-06 09:30:45 -08:00
Bharat Mediratta
22ea03847a
Localize validation errors.
2010-02-01 21:27:15 -08:00
Bharat Mediratta
c050acf30a
Fix lots of warnings that pop up when we're in E_STRICT mode. They're
...
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-31 16:07:41 -08:00
Bharat Mediratta
79a1365991
Don't override the password in the database if it's empty in the form.
...
Fixes ticket #995 .
2010-01-30 20:43:53 -08:00
Bharat Mediratta
f0780486ee
Fix typo: edit_user -> add_user.
2010-01-20 22:53:51 -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
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
ff728b3ccd
Whitespace.
2010-01-16 17:51:57 -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
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
Tim Almdal
6bdb8c3d55
Correct inconsistent captialization. Fixes #906
2009-11-21 09:36:19 -08: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
Tim Almdal
1c428df9e0
Revert "Use an event 'check_user_name_exists' to validate the input name is already in use. The parameter is a standard class with the name and an exists flag. Any event handler should or their result with the exists flag."
...
This reverts commit 04bf50bfb4 .
2009-10-31 16:16:47 -07:00
Tim Almdal
ddf8734a41
Caught a few more incorrect capitalizations.
2009-10-30 08:33:31 -07:00
Tim Almdal
04bf50bfb4
Use an event 'check_user_name_exists' to validate the input name is already in use. The parameter is a standard class with the name and an exists flag. Any event handler should or their result with the exists flag.
2009-10-29 17:09:01 -07:00
Tim Almdal
3b4a64c698
Check the minimum length when adding or modifying users via the admin screen.
2009-10-27 14:21:59 -07:00
Tim Almdal
1347a30050
Add a password strength meter.
2009-10-27 12:23:48 -07:00
Tim Almdal
156a99beef
Set the minimum password length to 5. The gallery owner can change this in the advance settings.
2009-10-27 10:13:52 -07:00
Tim Almdal
0a6b540092
Merge branch 'master' into talmdal_dev
...
Conflicts:
modules/server_add/helpers/server_add_theme.php
2009-10-24 07:28:22 -07:00
Chad Kieffer
3814186592
Created user.css. Moved user-related form css to the new sheet.
2009-10-23 22:25:36 -06:00
Tim Almdal
3c936d661a
Change the name of identity library from Identity to IdentityProvider. Create a helper class called identity to simplify call the Identity Provider. Move the contents of MY_Session.php to the new helper class and remove the MY_Session class
2009-10-22 13:11:03 -07:00
Tim Almdal
78ee4193b7
Remove all non Identity API methods from Identity.php. Created an MY_Session class to provide the user state changes in the session and a login.php helper that has the login form.
2009-10-16 10:06:58 -07:00
Tim Almdal
bc241e44c2
Cleanup merge of user/group helpers into Identity interface. Reduce 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-16 08:55:26 -07:00
Tim Almdal
00eacd659f
Start simplifying the interface by moving the static methods from user.php and group.php. Tried creating a identity helper, but the helper identity.php was confused with the library Identity.php. So got around this by making the methods on Identity static and calling the instance within the static methods. Also temporarily moved the user.php and group.php back into the user module.
2009-10-16 08:53:31 -07:00
Tim Almdal
be6765336e
Finish integrating the move of the user edit/update functions into the user module. The premise is that the plugable user module will provide the update screens if the user backend supports updates.
2009-10-16 08:53:30 -07:00
Tim Almdal
7e4c0e7135
Merge branch 'master' into talmdal_dev
2009-10-15 09:05:44 -07:00
Tim Almdal
f5dd8d487e
Move all the edit/update forms for users and groups back to the user module.
2009-10-15 08:56:31 -07:00
Tim Almdal
1ca835cea7
Merge branch 'master' into talmdal_dev
2009-10-15 07:58:46 -07:00
Tim Almdal
0d5d4c81bc
Move the ui for user adminsitration back to the user module.
2009-10-14 21:20:30 -07:00
Tim Almdal
2af4806011
Refactor the ui component of the user module into the gallery core module.
2009-10-13 13:19:17 -07:00
Tim Almdal
00ee91837f
Convert direct lookups for the user table using ORM to using the 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 194cc3b27a )
Create the get_user_list, lookup_by_name, lookup_by_hash and get_group_list api functions
2009-10-09 01:26:35 -07:00
Tim Almdal
7f38d6ff29
Change the focus of the user module from providing user/group management to providing the default Identity implementation.
...
* Remove the user_event callbacks and move them to the gallery_event callbacks. This will insure that the active user is always loaded (because the gallery callbacks are always called first) to its available to other gallery_ready handlers. Moved the method set_request_locale to the locales helper as it is more related to locales.
* Move the user controllers and views into the gallery module.
* Move the theme and block processing out of the user module and into core.
2009-10-06 18:30:12 -07:00
Tim Almdal
8285cd58e2
Handle the filters on Identity/Gallery::list_users and Identity/Gallery::list_groups
2009-10-05 18:10:39 -07:00