Tim Almdal
f04177f138
re-add the lookup_group_by_name API Method.
2009-10-21 11:49:42 -07:00
Tim Almdal
0d53ed619a
remove the lookup_group_by_name as it is not referenced
2009-10-20 17:24:17 -07:00
Tim Almdal
b28c758d4a
Add lookup_group Identity provider API and change the permissions controller to use it to get the group it is modifying
2009-10-20 17:21:33 -07:00
Tim Almdal
3ece1a01f2
Add a groups api method on the Identity provider and change access_Core::_get_all_groups() to use this to get the defined groups.
2009-10-20 17:01:19 -07:00
Tim Almdal
7f9441c33d
Changes to Identity interface to allow for multiple Identity providers. What I've tested to this point, is you can install a new provider, switch to it, login as administrator, uninstall the default user module, reinstall the user module, switch back to the user module and login.
2009-10-20 16:32:22 -07:00
Tim Almdal
098b57bf18
Simplify the user interface by moving the password reset functionality into 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-19 12:53:44 -07:00
Tim Almdal
c9a030dd08
Add a menu item to manage the Identity drivers if there is more than one installed
2009-10-18 09:21:34 -07:00
Tim Almdal
6d5c12e13e
Move the default identity config into the users module and change the Identity constructor to look in module::get_var(gallery, identity_provider) for the current identity driver.
...
In addition, don't just arbitrarily lock the use module. Only lock gallery and the module that is referenced by "user_driver_module" variable.
2009-10-18 08:00:33 -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
5b4f309163
Clean up phpDoc and change the Identity driver so only one configuration can be active at a given time.
2009-10-14 09:47:04 -07:00
Tim Almdal
d9720b77e9
Merge branch 'master' into talmdal_dev
...
Conflicts:
modules/gallery/controllers/admin_users.php
modules/gallery/controllers/password.php
modules/gallery/helpers/group.php
modules/gallery/helpers/user.php
modules/notification/helpers/notification.php
2009-10-13 11:48:42 -07:00
Tim Almdal
03d0311618
Implement a user::is_writable() API method and disable the user add, updates and display if the Identity driver does not support writes. This is set in the config.identity.php
2009-10-07 21:40:05 -07:00
Tim Almdal
da84a46ccb
Clean up extra single quotes from copy and paste
2009-10-06 18:30:09 -07:00
Tim Almdal
ca17727478
Access the form validation rules via the API for groups and users
2009-10-05 17:08:27 -07:00
Tim Almdal
08c01fec6c
The initial commit of refactoring the user/group adminsitration into a driver.
...
Create an Identity library that defines the interface the Gallery3 expects
Move the user and group helpers into the gallery module to provide the familiar
interface into the Identity library.
Create a Gallery Identity back-end that is supplied by the user module.
The vision here is that all user and group code that is gallery or ui specific
is contained within the core product. Anything that relates to manipulating a
user or group is contained in the back end code that can be replaced.
2009-10-05 16:27:52 -07:00