Côme Chilliet
1580c8612b
chore(apps): Apply new rector configuration to autouse classes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
provokateurin
51d9d63a01
chore: Use more gender neutral language
Signed-off-by: provokateurin <kate@provokateurin.de>
1 year ago
Andy Scherzinger
5b7dcc1427
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 year ago
Côme Chilliet
ec5133b739
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2 years ago
Hamid Dehnavi
d64bbc8bd3
Convert isset ternary to null coalescing operator
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2 years ago
Côme Chilliet
1e06b61f59
Migrate away from ILogger in encryption
And modernize code a bit
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
4 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
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>
6 years ago
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* 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>
6 years ago
Joas Schilling
16d47b5928
Fix wrongly mixed mock objects in encryption tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Bjoern Schiessle
3adc2aca53
add occ command to recover encrypted files in case of password lost
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
7 years ago
Morris Jobke
d3d045dd5c
Remove unused import statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
5987099d2a
Remove unneeded check if app is enabled
App code will not be executable if the app is not enabled, because the autoloader refuses to load that class.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
1729e4471f
Update comments to Nextcloud
* based on PR by @Ardinis
* see #4311
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Bjoern Schiessle
fcda3a20f4
create new encryption keys on password reset and backup the old one
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
9 years ago
Joas Schilling
813f0a0f40
Fix apps/
9 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
4a3311f430
Move Encryption app to PSR-4 ( #24524 )
* Move Encryption to PSR-4
* Move encryption tests to PSR-4
* Fix the tests
10 years ago
Björn Schießle
a3381b1d0c
we need to initialize the mount points of the given user before we recover
access to his files
10 years ago
Bjoern Schiessle
89223379ad
replaceUserKeys() actually deletes the users keys -> update method name and doc-block
10 years ago
Bjoern Schiessle
5e267589d4
only create and update user specific key if no master key is enabled
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Scrutinizer Auto-Fixer
be4c3a8b56
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
10 years ago
Bjoern Schiessle
7f459c64cb
check for the right user if we can change his password
10 years ago
Bjoern Schiessle
854fd63ea9
use uid as additional information for salt
10 years ago
Bjoern Schiessle
62bc0e5264
use password hash instead of the plain password to encrypt the private key
10 years ago
Bjoern Schiessle
7d05f387fb
make sure that we create a header for the encrypted private key
11 years ago
Bjoern Schiessle
195a48b2b8
fix change password if no user is logged in, occ call
11 years ago
Bjoern Schiessle
6bcf88ca96
fix decryption of legacy private key
11 years ago
Thomas Müller
a4483243ac
fixing license headers - encryption code related
11 years ago
Thomas Müller
111fbabfb4
PHPDoc cleanup - clean code \o/
11 years ago
Thomas Müller
8cf9b423d5
cleanup
11 years ago
Bjoern Schiessle
a057108c0c
make recovery key work
11 years ago
Bjoern Schiessle
4843e5ce30
use password change logic to userhooks to avoid recursions
11 years ago
Bjoern Schiessle
0f28d538a0
add session class to handle all session operations
11 years ago
Clark Tomlinson
d15c2e52b0
cleanup and removing cachefactory
11 years ago
Thomas Müller
ecb3834554
fixing obvious bugs while testing
11 years ago
Clark Tomlinson
0c2f9ca849
Updating keystorage movement and fixing hooks
11 years ago
Clark Tomlinson
39733c8da1
Initial commit
11 years ago