aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
AgeCommit message (Collapse)Author
2009-03-07Closes #841: User request for password changes now functional.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3122 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-06Reversed delete procedure on entities, parent now checked first before sub ↵marcus
deleted. Any stubs left over will be handled by the garbage collector. git-svn-id: https://code.elgg.org/elgg/trunk@3119 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-03Removed calls to the deprecated entity cacheben
git-svn-id: https://code.elgg.org/elgg/trunk@3028 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-03-02Removing duplicate deletion code.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@3016 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-25Introduces user default access.kevinjardine
git-svn-id: https://code.elgg.org/elgg/trunk@2943 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-20isFriend() now retrieving userid correctlymarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2862 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-19Fixed parameter errors in site-related functions. Fixes #793ben
git-svn-id: https://code.elgg.org/elgg/trunk@2824 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-19Fix for user object counting with upper and lower time limits.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2806 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-19Introducing archive functionality.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2803 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-11Removing wildcard from the beginning of 'like' search for user/usernameben
git-svn-id: https://code.elgg.org/elgg/trunk@2716 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-09Closes #584: Removed exception, get_user will now return false if GUID ↵marcus
exists but is not a user. This probably makes more sense as Exceptions should probably be reserved for major Ooopses. The error in this bug was caused by this exception being thrown and not caught in the access group handler. This may have been the cause of a number of group related / permission related errors. git-svn-id: https://code.elgg.org/elgg/trunk@2682 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-09Refs #584: Fixed error message.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2681 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-04Moves access permissions references over to using the ACCESS_* constants ↵ben
defined in access.php. Refs #687 git-svn-id: https://code.elgg.org/elgg/trunk@2639 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-02-04When a new password is generated, the salt is now regenerated first. Fixes #726.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2637 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-23Refs #706marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2611 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-21Closes #699: get_user_by_username now using access controls. Will no longer ↵marcus
throw exception when accessing disabled users. git-svn-id: https://code.elgg.org/elgg/trunk@2588 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-14Closes #675: Posted missing commits from last time.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2567 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-13Closes #676: Entity subtables now deleted on failed connections.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2564 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-13Closes #675: Salt changed during password resetmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2562 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-09Closes #560: Pagination parameters added.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2557 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-09Closes #668: Banning now works through a flag in the users_entity table. ↵marcus
Database upgrade required. * Added ElggUser::isBanned(); * Added 'banned' column to users_entity * Modified ban() and unban() * Modified pam functions to check $user->isBanned() * Modified login() to check $user->isBanned() * Modified sessions_init() to check isBanned() and destroy session accordingly * Modified profile views to highlight banned users and prevent menus for non-admin users. git-svn-id: https://code.elgg.org/elgg/trunk@2554 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-08Refs #668: Building on [2546] and providing ban and unban functions. Later ↵marcus
these will be replaced with "banning" functions. git-svn-id: https://code.elgg.org/elgg/trunk@2549 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-08Refs #668, #640: Cleaner interface provided for banning.marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2546 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-08Refs #640: Renamed and moved entities.php:disable_entities to ↵marcus
user.php:disable_user_entities git-svn-id: https://code.elgg.org/elgg/trunk@2545 36083f99-b078-4883-b0ff-0f9b5a30f544
2009-01-01bug #634 fixeddave
git-svn-id: https://code.elgg.org/elgg/trunk@2528 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-12-04Closes #609 marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2503 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-12-03Closes #550: Code metadata now moved to private storagemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2498 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-21Closes #554: Validation procedure now correctly screening for ascii spacemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2484 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-20Fixes #548: Introducing set_last_login($user_guid). Called from login(), but ↵marcus
call from any authentication code where appropriate. git-svn-id: https://code.elgg.org/elgg/trunk@2481 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-19Fixes #568: Exportable code now inclusive not exclusive.marcus
* Added extra function Exportable interface * OpenDD export modified * PHP & JSON export views modified * Default export view will still show all data if you are logged in as admin (since this view is used by the guidtool) git-svn-id: https://code.elgg.org/elgg/trunk@2467 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-14* Introducing get_loggedin_user() and get_loggedin_userid()marcus
* ACLs now using get_loggedin_user* * Some logic cleaned up * Some "Undefined..." messages cleaned up git-svn-id: https://code.elgg.org/elgg/trunk@2459 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-06Last action query update delayed to avoid invalidating query cache ↵marcus
unnecessarily. git-svn-id: https://code.elgg.org/elgg/trunk@2415 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-11-03Minor tweaks 'cos case does matter...marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2379 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-24The friend invite infrastructure is now secure.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2310 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-24Added the ability to add a user to a user's friends list on registration.ben
git-svn-id: https://code.elgg.org/elgg/trunk@2305 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-21Closes #457: Now returns $guid on success, false on failmarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2288 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-08Allowing '.' in username, refs #415marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2220 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-06List_user_friends_objects now lets you hide the toggle to gallery viewben
git-svn-id: https://code.elgg.org/elgg/trunk@2190 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-03Fixes #311, closes #345: Validation now called via event 'user', 'validate'. ↵marcus
Email validation now a plugin. git-svn-id: https://code.elgg.org/elgg/trunk@2177 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-03Removed old validation codemarcus
git-svn-id: https://code.elgg.org/elgg/trunk@2175 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-10-03Refs #311marcus
git-svn-id: https://code.elgg.org/elgg/trunk@2169 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-09-30Closes #388: Additionally the site check in configuration_init() should be ↵marcus
instanceof. Nice spot, thanks. git-svn-id: https://code.elgg.org/elgg/trunk@2151 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-25Closes #254: If mb_string is installed then internationalised usernames are ↵marcus
supported in file system. Because of this I have raised mbstring from recommended to a (non-fatal) core requirement. Because of the lack of a unicode ctype_alnum function the validation occurs at username input. Because of this I have improved the user registration code: This code now validates for special chars etc in the username. I have also introduced the following new plugin hooks (which are run after primary validation) which provide plugins with the ability to add other requirements (extra security etc). 'registeruser:validate:password' 'registeruser:validate:username' 'registeruser:validate:email' Marcus Povey 25/8/08 git-svn-id: https://code.elgg.org/elgg/trunk@2040 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-18Removing a user disables their entitiesben
git-svn-id: https://code.elgg.org/elgg/trunk@1997 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-16Removing gallery on search user list functionben
git-svn-id: https://code.elgg.org/elgg/trunk@1972 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-15Correction for the search list users by name function.ben
git-svn-id: https://code.elgg.org/elgg/trunk@1956 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-15Added proper search for users by nameben
git-svn-id: https://code.elgg.org/elgg/trunk@1953 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Closes #227 and #243: Hopefully this has the fscking thing nailed to the wall. marcus
Please report any problems, especially is they relate to access permissions (granted when you shouldn't or denied when you should) git-svn-id: https://code.elgg.org/elgg/trunk@1912 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Reverted changes so users can now register again.marcus
There are critical issues with enable/disable. Primarily: 1) A number of functions do not use the access controls, these throw an exception when accessing a disabled entity. 2) #243 does not seem possible. git-svn-id: https://code.elgg.org/elgg/trunk@1909 36083f99-b078-4883-b0ff-0f9b5a30f544
2008-08-13Fixes #241: Changed order, delete user using object's delete method rather ↵marcus
than the low level function git-svn-id: https://code.elgg.org/elgg/trunk@1887 36083f99-b078-4883-b0ff-0f9b5a30f544