summaryrefslogtreecommitdiffstats
path: root/lib/private/user
Commit message (Collapse)AuthorAgeFilesLines
* Throw an exception when login is canceled by an appRobin Appelman2015-01-222-1/+18
|
* Return false if the login is canceled in a hookRobin Appelman2015-01-131-1/+1
|
* Merge pull request #12969 from owncloud/clarify-docsMorris Jobke2014-12-221-2/+2
|\ | | | | Clarify return values
| * Fix typoLukas Reschke2014-12-191-1/+1
| |
| * Clarify return valuesLukas Reschke2014-12-191-1/+1
| | | | | | | | This function returns `null` when no user is logged-in.
* | Merge pull request #12923 from owncloud/ultra-slim-version-of-incognito-modeLukas Reschke2014-12-191-0/+5
|\ \ | |/ |/| Add ultra-slim hack for incognito mode
| * Add ultra-slim hack for incognito modeLukas Reschke2014-12-171-0/+5
| | | | | | | | As discussed at https://github.com/owncloud/core/pull/12912#issuecomment-67391155
* | introduce names for user backends - IUserBackendMorris Jobke2014-12-195-6/+38
| | | | | | | | * LDAP with multiple servers also proved backendName
* | Merge pull request #12901 from owncloud/move-ldap-check-to-managerRobin McCorkell2014-12-181-0/+3
|\ \ | |/ |/| Move the Null-Byte LDAP check to the user manager
| * Move the Null-Byte LDAP check to the user managerLukas Reschke2014-12-171-0/+3
| | | | | | | | | | | | The existing method is deprecated and just a wrapper around the manager method. Since in the future other code paths might call this function instead we need to perform that check here. Related to http://owncloud.org/security/advisory/?id=oc-sa-2014-020
* | add a isLoggedIn method to the usersession and deprecate the isLoggedIn ↵Bernhard Posselt2014-12-171-0/+9
|/ | | | method on the api
* Use public interfaceLukas Reschke2014-12-111-5/+5
|
* Add filter for 'backend' to user REST routeLukas Reschke2014-12-101-0/+8
| | | | | | | | This adds a "backend" type filter to the index REST route which is a pre-requisite for https://github.com/owncloud/core/issues/12620 For example when calling `index.php/settings/users/users?offset=0&limit=10&gid=&pattern=&backend=OC_User_Database` only users within the backend `OC_User_Database` would be shown. (requires sending a CSRF token as well) Depends upon https://github.com/owncloud/core/pull/12711
* Merge pull request #12711 from owncloud/add-backend-to-rest-indexLukas Reschke2014-12-101-0/+9
|\ | | | | Expose backend type via REST API
| * Expose backend type via REST APILukas Reschke2014-12-091-0/+9
| | | | | | | | | | | | | | | | | | This change will expose the user backend via the REST API which is a pre-requisite for https://github.com/owncloud/core/issues/12620. For example: ````json [{"name":"9707A09E-CA9A-4ABE-A66A-3F632F16C409","displayname":"Document Conversion User Account","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/9707A09E-CA9A-4ABE-A66A-3F632F16C409","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"ED86733E-745C-4E4D-90CB-278A9737DB3C","displayname":"Hacker","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/ED86733E-745C-4E4D-90CB-278A9737DB3C","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"71CDF45B-E125-450D-983C-D9192F36EC88","displayname":"admin","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/71CDF45B-E125-450D-983C-D9192F36EC88","lastLogin":0,"backend":"OCA\\user_ldap\\USER_LDAP"},{"name":"admin","displayname":"admin","groups":["admin"],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/admin","lastLogin":"1418057287","backend":"OC_User_Database"},{"name":"test","displayname":"test","groups":[],"subadmin":[],"quota":"default","storageLocation":"\/Users\/lreschke\/Programming\/core\/data\/test","lastLogin":0,"backend":"OC_User_Database"}] ```
* | reduce OC_Preferences, OC_Config and \OCP\Config usageMorris Jobke2014-12-082-6/+7
| | | | | | | | | | | | | | | | | | | | * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container
* | migrate \OC\AllConfig to \OCP\IConfigMorris Jobke2014-12-082-6/+8
|/
* Add REST route for user & group managementLukas Reschke2014-12-082-1/+19
| | | | First step of a somewhat testable user management. - I know, the JSON returns are in an ugly format but the JS expects it that way. So let's keep it that way until we have time to fix the JS in the future.
* Move OC_USER_BACKEND_* constants to OC_User_Backend classJoas Schilling2014-11-274-22/+47
|
* remove deprecated \OC:$sessionThomas Müller2014-11-261-17/+0
|
* removal of wrong/double implemented checkmichag862014-11-131-1/+1
| | | | Check already implemented in core/settings/ajax/changedisplayname.php
* Merge pull request #12003 from owncloud/password-migrationLukas Reschke2014-11-061-32/+7
|\ | | | | Use new hashing API for OC_User_Database
| * Use new hashing API for OC_User_DatabaseLukas Reschke2014-11-061-32/+7
| | | | | | | | This will use the new Hashing API for OC_User_Database and migrate old passwords upon initial login of the user.
* | Support displaynames for dummy user backendRobin Appelman2014-11-061-3/+18
|/
* Remove confusingly names \OC\User\Manager::delete and fix the automatic ↵Robin Appelman2014-11-051-19/+5
| | | | cache cleanup instead
* Clear session after logoutLukas Reschke2014-10-301-0/+1
| | | | Fixes https://github.com/owncloud/core/issues/8420
* strip whitespace from the beginning and end of the display name to avoid ↵Bjoern Schiessle2014-10-151-2/+12
| | | | empty display names
* Unset the cached active user when using a different session objectRobin Appelman2014-10-131-11/+12
|
* Merge pull request #11229 from kofemann/for-upstreamLukas Reschke2014-09-241-9/+8
|\ | | | | user/backed: use pow of two for backed action constants
| * user/backed: use pow of two for backed action constantsTigran Mkrtchyan2014-09-231-9/+8
| | | | | | | | | | | | | | | | the current implementation limits number of possible backed actions to 8 as it uses pow of 16 for constants. This change introduces pow of two and allows up-to 32 actions to be defined. The old values are preserved for backward compatibility.
* | Do only follow HTTP and HTTPS redirectsLukas Reschke2014-09-221-0/+2
|/ | | | | | | | We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server) Get final redirect manually using get_headers() Migrate to HTTPHelper class and add unit tests
* Use proper RNG generatorLukas Reschke2014-09-031-1/+1
| | | | | OC_Util::generateRandomBytes() only returns lowercase alphanumeric values. We should use the new RNG which has a broader characterset.
* Use public api for getting l10nRobin Appelman2014-08-311-1/+1
|
* retrieve local users, groups and group members in a sorted wayArthur Schiwon2014-08-291-2/+2
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-3/+41
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* Fix unit testLukas Reschke2014-08-151-1/+4
|
* Move authentication failed logging to checkPasswordLukas Reschke2014-08-151-0/+2
| | | | Fixes https://github.com/owncloud/core/issues/10366
* Merge pull request #10144 from owncloud/issue/9972Thomas Müller2014-08-061-1/+1
|\ | | | | Issue/9972 Fix issues with group and username `0`
| * Fix isLoggedIn() check for user '0'Joas Schilling2014-08-041-1/+1
| | | | | | | | Fix #9972
* | - adding default value for $recoveryPasswordThomas Müller2014-07-241-1/+1
| | | | | | | | - set password correctly in lost password
* | Add public interfaces for User, UserManager and UserSessionRobin Appelman2014-07-143-3/+6
| |
* | loop over usernames, not passwordsArthur Schiwon2014-06-301-1/+1
| |
* | extend Dummy user and group implementation to pass testsArthur Schiwon2014-06-251-1/+10
| |
* | search term for users and groups may occur anywhere in the name or ↵Arthur Schiwon2014-06-231-2/+2
|/ | | | displayname, not just in the beginning
* drop superflous statement in phpdocArthur Schiwon2014-05-261-2/+0
|
* add preRememberedLogin hook and document this and postRememberedLogin in ↵Arthur Schiwon2014-05-261-1/+4
| | | | class descripttion. Also fixes documentation of postLogin hook
* increase scrutinizer happyiness by removing minor/informational issuesArthur Schiwon2014-05-231-1/+1
|
* clean up tryRememberLogin and save the timestamp of users last loginArthur Schiwon2014-05-213-0/+65
|
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-196-40/+40
| | | | * test case added to avoid adding them later
* Merge pull request #7363 from owncloud/optimize-startup-queriesMorris Jobke2014-05-191-5/+7
|\ | | | | Optimize some queries that are always executed when loading base.php