Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Morris Jobke
43e498844e
Use ::class in test mocks
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Arthur Schiwon
a62b4a68a0
throw 101 when an empty group string is provided
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
6 years ago
Roeland Jago Douma
6d4731024a
Some app fixes of phpstorm inspections
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Joas Schilling
fa717d9706
Add unit tests for the new code
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
7816c54625
Allow to force a language and set it via the ocs api
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
0e26ba4c2a
Don't allow the user to set fields they can't see
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
7a87fedac3
Remove dead arguments
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
e19126425b
Fix similar issues with the group id
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
992c48c89b
Fix the storage info and other checks when the user has wrong casing
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Morris Jobke
4dd72e9eb9
Use RESPOND_NOT_FOUND for non existing user
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Lukas Reschke
280a075c9c
Adjust class references
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Morris Jobke
5b4adf66e5
Move OC_Defaults to OCP\Defaults
* currently there are two ways to access default values:
OCP\Defaults or OC_Defaults (which is extended by
OCA\Theming\ThemingDefaults)
* our code used a mixture of both of them, which made
it hard to work on theme values
* this extended the public interface with the missing
methods and uses them everywhere to only rely on the
public interface
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Lukas Reschke
281ad406e8
Add support for theming
Add support for theming in generated emails and simplify API
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Joas Schilling
3d628783d9
Allow to change account info via provisioning api
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Morris Jobke
50f3efad6f
OCS API endpoint to resend welcome message
* send a POST request to ocs/v1.php/cloud/users/USERNAME/resendWelcomeMessage to trigger
the welcome message to be send
* fixes #3367
example curl statement:
curl -i https://example.org/ocs/v1.php/cloud/users/USERNAME/welcome -H "OCS-APIRequest: true" -u admin:password -X POST
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Christoph Wurst
8e370bbf28
Refactor provision api app's UserControllerTest
* Replace deprecated getMock with createMock
* Use createMock consistently
* Use php's ::class references
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
7 years ago
Bjoern Schiessle
2ca8339d01
add groups to user info output
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago
Bjoern Schiessle
3e6c40eeb4
make sure that 'getCurrentUser' gets an array in order to manipulate the data to match the old API
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago
Bjoern Schiessle
5086335643
unify endpoints form core and the the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago
Bjoern Schiessle
fee42647fb
add data from the users profile to the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago
Joas Schilling
5d1f7e5a7b
Allow subadmins to add people to groups via provisioning api
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
d80a4453af
Make sure subadmins can not delete users from their last subadmin group
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
ae77067a07
No need to check the subadmin again
The user needs to be a subadmin of the group,
otherwise they are not allowed to remove anyone from the group
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Roeland Jago Douma
8f4adebab7
Move Users to OCSController
8 years ago
Joas Schilling
813f0a0f40
Fix apps/
8 years ago
Roeland Jago Douma
f9e0e3d972
Fix Warnings Provisioning API
* OC_OCS_Result is deprecated
* getMock is deprecated in phpunit 5.4
8 years ago
Lukas Reschke
aba539703c
Update license headers
8 years ago
Joas Schilling
2a05035339
Move Provisioning api to PSR-4 (#24510)
* Move app to PSR-4
* Fix setUp method
* Fix the tests
8 years ago
Thomas Müller
8486926a14
Add provisioning api to enable and disable users
8 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
8 years ago
Arthur Schiwon
d19c47a381
More fixed tests :)
8 years ago
Thomas Müller
aeb89947a2
Introduce IUser::setEMailAddress and add hook mechanism
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Thomas Müller
eebe2b9c23
User IUser::getEMailAddress() all over the place
8 years ago
Roeland Jago Douma
fc1f0233ff
Added unit test for new functionality
8 years ago
michag86
3b88c469c7
enable api addUser for subadmins
* Fix existing unit tests
8 years ago
Joas Schilling
960c9f386d
Revert OCS error code change from #20135
8 years ago
Lukas Reschke
c6f6a8758b
Drop OC_SubAdmin and replace usages
8 years ago
Lukas Reschke
8f09d5b67c
Update license headers
8 years ago
Roeland Jago Douma
9b64fa7b92
[provisioning api] losen test
Since we have no control of how backends sort their list of users and we
also don't want to sort yet another time the test now just checks if the
correct number of elements is returned and if they are from the list of
group members.
8 years ago
Roeland Jago Douma
aeffd51145
Fix scrutinizer issues
* PHPDoc
* Proper array initialization
8 years ago
Roeland Jago Douma
ef3aa1218e
[provisioning api] Updated tests
* Test pass again
* Code coverage getUsers is at 100% again
9 years ago
Roeland Jago Douma
b41bccd385
Check for userSession->getUser() === null
9 years ago
Roeland Jago Douma
2148120883
[provisioning api] Test for correct displayname
9 years ago
Roeland Jago Douma
867f5136c2
[provisioning api] Improve test coverage user
9 years ago
Roeland Jago Douma
cea72c47f9
[provisioning_api] Move tests to OCP
9 years ago
Roeland Jago Douma
97d79202ac
[provisioning_api] OC_User to IUserSession
9 years ago
Roeland Jago Douma
abca7737b7
[provisioning_api] Move users away from static code
9 years ago
Morris Jobke
f63915d0c8
update license headers and authors
9 years ago