aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #3889 from nextcloud/downstream-26950Morris Jobke2017-03-232-3/+3
|\ | | | | Sharing dialog: make autocomplete sorting case insensitive
| * fix sorting in the backendMorris Jobke2017-03-232-3/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3929 from nextcloud/downstream-27068Joas Schilling2017-03-201-2/+7
|\ \ | | | | | | cache loadUser if not exists
| * | Add tests for database user backend cachingVincent Petry2017-03-201-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Add comment, closeCursor in user DB query Invalidate user in cache after successful creation Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | cache loadUser if not existsJörn Friedrich Dreyer2017-03-201-1/+1
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Add postLogout hook to finish sessions from external session managers (#27048)Felix Rupp2017-03-191-0/+3
|/ / | | | | | | | | | | | | | | * Add postLogout hook to finish sessions from external session managers like CAS * Add postLogout hook to finish sessions from external session managers like CAS Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Don't call function in constructorLukas Reschke2017-03-161-7/+3
| | | | | | | | | | | | The constructor is iniitiated already very early in base.php, thus requiring this here will break the setup and some more. For now we probably have to live with a static function call here thus. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Escape like parameters in database user backendLukas Reschke2017-03-151-3/+7
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-2/+8
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #2606 from temparus/masterblizzz2017-02-151-3/+6
|\ | | | | Add preLoginValidation hook
| * Update license headerSandro Lutz2017-02-071-0/+2
| | | | | | | | Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
| * Merge remote-tracking branch 'nextcloud/master'Sandro Lutz2017-02-073-5/+18
| |\ | | | | | | | | | Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
| * | Add check if UserManager is of type PublicEmitter before calling preLogin hookSandro Lutz2017-02-011-1/+3
| | | | | | | | | | | | Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
| * | Change where preLogin hook gets calledSandro Lutz2017-02-011-3/+2
| | | | | | | | | | | | Signed-off-by: Sandro Lutz <sandro.lutz@temparus.ch>
* | | Merge pull request #3417 from nextcloud/push-notificationMorris Jobke2017-02-101-2/+20
|\ \ \ | | | | | | | | Push notification
| * | | Save the used token id in the session so it can be used later onJoas Schilling2017-02-091-2/+20
| | |/ | |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / | Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-081-1/+2
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add proper default value for datadirMorris Jobke2017-01-191-1/+1
| | | | | | | | | | | | | | * better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | add action to existing brute force protectionBjoern Schiessle2017-01-181-3/+3
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | spaces addedLoki30002017-01-101-1/+1
| |
* | allowed '0' uidLoki30002017-01-101-1/+1
| |
* | remove non required db requestsLoki30002017-01-101-1/+6
| |
* | Default value for null userLoki30002017-01-091-0/+1
| | | | | | | | | | For guest users on every request executes query: SELECT `uid`, `displayname` FROM `users` WHERE LOWER(`uid`) = LOWER(null) as I see, uid can't be equal to null by design.
* | Make sure the loginname is set when logging in via cookieJoas Schilling2017-01-051-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Get user home folder before deletionVincent Petry2016-12-231-1/+7
|/ | | | | | | After the deletion getHome() will fail because the user doesn't exist any more, so we need to fetch that value earlier. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Set last-login-check on basic authRoeland Jago Douma2016-12-051-0/+5
| | | | | | | | | Else the last-login-check fails hard because the session value is not set and thus defaults to 0. * Started with tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* do not remember session tokens by defaultChristoph Wurst2016-11-271-1/+1
| | | | | | | | We have to respect the value of the remember-me checkbox. Due to an error in the source code the default value for the session token was to remember it. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix warning with token loginRobin Appelman2016-11-161-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* read lockdown scope from tokenRobin Appelman2016-11-161-2/+1
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* basic lockdown logicRobin Appelman2016-11-161-0/+2
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Introduce an event for first time login based on the last login time stampThomas Müller2016-11-143-15/+23
| | | | | | | | | | | | Use firstLogin event to trigger creation of default calendar and default address book Delay login of admin user after setup so that firstLogin event can properly be processed for the admin Fixing tests ... Skeleton files are not copied over -> only 3 cache entries are remaining Use updateLastLoginTimestamp to properly setup lastLogin value for a test user
* inject ISecureRandom into user session and use injected config tooChristoph Wurst2016-11-021-11/+18
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* bring back remember-meChristoph Wurst2016-11-021-19/+51
| | | | | | | | | | * try to reuse the old session token for remember me login * decrypt/encrypt token password and set the session id accordingly * create remember-me cookies only if checkbox is checked and 2fa solved * adjust db token cleanup to store remembered tokens longer * adjust unit tests Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Proper DI of configRoeland Jago Douma2016-10-281-12/+13
| | | | | | * Fixed comments Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-281-19/+116
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Fix logClientIn for non-existing users (#26292)Vincent Petry2016-10-251-0/+3
| | | | | | | The check for two factor enforcement would return true for non-existing users. This fix makes it return false in order to be able to perform the regular login which will then fail and return false. This prevents throwing PasswordLoginForbidden for non-existing users.
* dont update the auth token twiceRobin Appelman2016-10-111-2/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Cache non existing DB userRoeland Jago Douma2016-10-101-2/+7
| | | | | | | | | We always query the database backend. Even if we use a different one (ldap for example). Now we do this everytime we try to get a user object so caching that a user is not in the DB safes some queries on each request then (at least 2 what I found). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only trigger postDelete hooks when the user was deleted...Joas Schilling2016-09-291-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove notifications upon user deletionJoas Schilling2016-09-291-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #1087 from nextcloud/get-delay-twiceLukas Reschke2016-08-301-2/+1
|\ | | | | dont get bruteforce delay twice
| * dont get bruteforce delay twiceRobin Appelman2016-08-291-2/+1
| |
* | Fix issues where some user settings cannot be loaded when the user id ↵Thomas Müller2016-08-291-0/+10
|/ | | | differs in case sensitivity - fixes #25684 (#25686)
* Add PHPdocRoeland Jago Douma2016-08-151-3/+5
|
* missing PHPDocJörn Friedrich Dreyer2016-08-141-0/+1
|
* Type compatabilityJörn Friedrich Dreyer2016-08-141-1/+1
|
* Method is deprecatedJörn Friedrich Dreyer2016-08-141-3/+3
|
* Unreachable statementJörn Friedrich Dreyer2016-08-141-4/+1
|
* Unnecessary fully qualified namesJörn Friedrich Dreyer2016-08-144-17/+25
|