summaryrefslogtreecommitdiffstats
path: root/lib/private/Accounts
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-7/+9
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* do not use private AccountManager in UsersControllerArthur Schiwon2021-05-252-4/+17
| | | | | | | | - extends IAccountProperty for verificationData getters and setters - implementation thereof ^ - and of course adaption of UsersController Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow to set valid scopes only in AccountPropertyArthur Schiwon2021-05-121-11/+20
| | | | | | the auto-fallback to v2-local is removed as well to react on wrong input Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #26259 from ↵Joas Schilling2021-04-261-0/+30
|\ | | | | | | | | nextcloud/feature/noid/validate-website-to-be-valid Validate the website field input to be a valid URL
| * Validate the website field input to be a valid URLJoas Schilling2021-04-221-0/+30
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Guard against null phone number valueDaniel Calviño Sánchez2021-04-231-0/+3
|/ | | | | | | "parsePhoneNumber()" expects a string, so a TypeError would be thrown if the phone number value is null. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Limit size of properties to 2048 charactersLukas Reschke2021-04-081-0/+11
| | | | | | | | | It is unreasonable to expect that one of these fields would be longer than 2048 characters. Whilst some have definitely lower limits (such as for phone numbers or domain names), a upper bound as sanity check makes sense. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Allow apps to write/update account dataJoas Schilling2021-03-311-0/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add property scope tests for AccountManagerVincent Petry2021-03-261-6/+13
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* OCS allow reading and writing account property scopesVincent Petry2021-03-262-2/+33
| | | | | | | Extends the provisioning API to allow a user to get and set their own account property scopes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Map old account scope properties to new namesVincent Petry2021-03-262-10/+28
| | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Chunk the array of phone numbersJoas Schilling2021-03-121-5/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the throwing optional, so background tasks don't breakJoas Schilling2020-12-071-3/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a config for default region of phone numbersJoas Schilling2020-12-071-12/+36
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also translate the phone number when coming in via the accounts manager API ↵Joas Schilling2020-12-071-2/+26
| | | | | | directly Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add an endpoint to search for accounts based on phone numberJoas Schilling2020-12-071-0/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a database table for the accounts data so we can search it betterJoas Schilling2020-12-071-2/+47
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make code strictJoas Schilling2020-12-072-5/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* PSR logger for accountsJoas Schilling2020-10-202-21/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only run the query to get the account data onceJoas Schilling2020-10-061-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Create account structure also for empty recordDaniel Kesselberg2020-05-171-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-13/+7
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-202-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Log critical fallback to user default if we can't parse the JSONChristoph Wurst2019-12-132-8/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Return a default user record if json is brokenDaniel Kesselberg2019-12-131-0/+3
| | | | | | | It's possible that json_decode returns null. Mostly the json is broken. AddMissingDefaultValues expects an array. Pass null will fail. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-052-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-3/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move settings to an appChristoph Wurst2019-09-281-1/+1
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Add default values when parsing account dataJulius Härtl2018-12-231-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use empty string instead of nullJulius Härtl2018-10-241-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add \OCP\Account public APIJulius Härtl2018-10-153-20/+236
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use ::class statement instead of stringMorris Jobke2018-01-291-1/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-2/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove account data on user deletionJoas Schilling2017-05-151-0/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix email verification statusBjoern Schiessle2017-04-281-1/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add missing translation and other small fixesBjoern Schiessle2017-04-281-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make use of verification buttonsBjoern Schiessle2017-04-281-3/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that every data set has a 'verified' statusBjoern Schiessle2017-04-281-9/+30
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* ask lookup server if email address was verified by the userBjoern Schiessle2017-04-282-3/+35
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that we don't lose previous verification statusBjoern Schiessle2017-04-281-0/+15
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* store verification status in accounts table and update lookup serverBjoern Schiessle2017-04-281-0/+46
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Also send the new account data with the eventJoas Schilling2017-04-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* bring back setEmailAddress for the user managementBjoern Schiessle2016-11-252-12/+28
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update accounts table if email address or display name changes from outsideBjoern Schiessle2016-11-252-5/+93
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix unit testsBjoern Schiessle2016-11-211-1/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update system address book if the user change the personal settingsBjoern Schiessle2016-11-211-13/+99
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* introduce accounts table and keep it up-to-date with the data added to the ↵Björn Schießle2016-11-211-0/+116
personal settings Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>