Joas Schilling
5dc6899d1a
Fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Christoph Wurst
243c9c0941
fix coding style and increase code coverage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
пре 7 година
Cornelius Kölbel
b8d41752ca
Fix tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
пре 7 година
Bjoern Schiessle
fcda3a20f4
create new encryption keys on password reset and backup the old one
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
пре 7 година
Roeland Jago Douma
350b7ebc86
Adds CssControllerTests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Roeland Jago Douma
31a3e9847f
Adds user controller tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Roeland Jago Douma
b5a23c9754
User command enable/disable tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Roeland Jago Douma
a7d9b7c876
Add Group Command tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Christoph Wurst
eff904473d
Set redirect_url on 2FA challenge page
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
пре 7 година
Roeland Jago Douma
09caadac05
Add tests for 2FA commands
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Bjoern Schiessle
16bbd3fd7c
fix password reset if encryption is enabled
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
пре 7 година
Joas Schilling
924358ef96
Save the timezone on login again
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Lukas Reschke
8bf4111368
Fix changing display names for subadmins
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
пре 7 година
Roeland Jago Douma
74c68d8761
Add OCSControllerTests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Roeland Jago Douma
dca9184a12
Fix tests
* Tests fixed and controller coverage to 100%
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Lukas Reschke
6d686c213b
[WIP] Use mail for encrypting the password reset token as well
пре 7 година
Roeland Jago Douma
9e6b26dcd0
Add cache 1 day cache to preview endpoint
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Roeland Jago Douma
55af6b45f7
More tests
* PreviewController test
* PublicPreview test
* Versions Preview test
* Trash Preview test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
пре 7 година
Christoph Wurst
d907666232
bring back remember-me
* 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>
пре 7 година
Joas Schilling
656e3f7a24
Check the mimetype before reading the content and catch exception
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Joas Schilling
ed30b1f645
Use our base class everywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Morris Jobke
c84dc6aa1c
Properly catch password policy hint for personal page password changes
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
пре 7 година
Joas Schilling
a1e4b17ff4
Remove unused endpoint
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Joas Schilling
877cb06bfe
Use magic DI for core controllers
Signed-off-by: Joas Schilling <coding@schilljs.com>
пре 7 година
Roeland Jago Douma
8a5af2d335
Fix tests
* hasParameterOption has an additional default value which we must match
in the return map
* Fix deprecated getMock calls
пре 7 година
Roeland Jago Douma
3a3a17b2e3
Fix getMock TwoFactorMiddlewareTest
пре 7 година
Christoph Wurst
8acb734854
add 2fa backup codes app
* add backup codes app unit tests
* add integration tests for the backup codes app
пре 7 година
Roeland Jago Douma
74fdaab870
Fix depreccated getMock in Core/Command tests
пре 7 година
Christoph Wurst
8e5c4c91fa
check same URL in unit tests
пре 7 година
Christoph Wurst
0a0c7a9b92
redirect to default app after solving the 2FA challenge
пре 7 година
Roeland Jago Douma
6a85882f61
Fix tests
пре 7 година
Roeland Jago Douma
b1a090f357
AvatarController use proper JSONResponse
* Do not rely on DataResponse magic. We want JSON so use JSON
* Fix tests
пре 7 година
Roeland Jago Douma
f6423f74e3
Minor cleanup in core Controllers
пре 7 година
Christoph Wurst
291dd0bd31
redirect to 2fa provider if there's only one active for the user
пре 7 година
Roeland Jago Douma
2f03853fb9
AvatarController cleanup
* Use all DI components
* Let the AppFramework resolve the AvatarController
* Update unit tests
* Unit tests no longer require DB
пре 7 година
Christoph Wurst
6af2efb679
prevent infinite redirect loops if the there is no 2fa provider to pass
This fixes infinite loops that are caused whenever a user is about to solve a 2FA
challenge, but the provider app is disabled at the same time. Since the session
value usually indicates that the challenge needs to be solved before we grant access
we have to remove that value instead in this special case.
пре 7 година
Joas Schilling
736e884e9a
Move the reset token to core app
пре 7 година
Joas Schilling
139fb8de94
Remove "password reset token" after successful login
пре 7 година
Roeland Jago Douma
789082e014
Add tests for ChangePasswordController
пре 8 година
Roeland Jago Douma
87ac72d004
We have to mock the is_uploaded_file in the OC\Core\Controller namespace
пре 8 година
Roeland Jago Douma
09f4ce4389
Fix mock call in AvatarControllerTest
пре 8 година
Lukas Reschke
cf3cfca356
Use generated URL
пре 8 година
Lukas Reschke
d6992e3f9f
Fix template test
пре 8 година
Lukas Reschke
75d135d8d4
Fix tests for LoginController
пре 8 година
Lukas Reschke
65d1472005
Don't use create mock
Not compatible with this PHPunit version
пре 8 година
Lukas Reschke
8a7a0f3287
Add unit tests
пре 8 година
Lukas Reschke
72b5f9bfac
Use createMock instead of deprecated getMock
пре 8 година
Lukas Reschke
9ca25e857c
Redirect users when already logged-in on login form
пре 8 година
Thomas Pulzer
61a1d56d27
Renamed test classes for file logging tests.
пре 8 година
Thomas Pulzer
ba3f4f118e
Changed logtype to file instead of owncloud.
- Updated the config sample to point to log_type='file'
- Renamed the Class for logfile logging to File in namespace 'OC\Log\'.
Changed the occurrences of 'OC\Log\Owncloud' to 'OC\Log\File'.
- Renamed the Class for log:file command to File in namespace 'OC\Core\Command\Log\File'.
Changed registration of the command to use 'OC\Core\Command\Log\File'.
- Changed default Syslog tag to Nextcloud
- Retained backwards compatibility for configs with 'logtype' => 'owncloud'
- Adjusted tests for the new file log.
Closes #490 .
пре 8 година