Skip to content

Commit

Permalink
🔥 Remove UsersCheckPasswordCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Dec 18, 2024
1 parent 1bdfe4b commit e6b4739
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 635 deletions.
7 changes: 0 additions & 7 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ services:
$appUrl: "%env(APP_URL)%"
$projectName: "%env(PROJECT_NAME)%"

App\Command\UsersCheckPasswordCommand:
arguments:
$mailCrypt: "%env(MAIL_CRYPT)%"
$mailLocation: "%env(DOVECOT_MAIL_LOCATION)%"
$mailUid: "%env(DOVECOT_MAIL_UID)%"
$mailGid: "%env(DOVECOT_MAIL_GID)%"

App\Command\UsersMailCryptCommand:
arguments:
$mailCrypt: "%env(MAIL_CRYPT)%"
Expand Down
16 changes: 0 additions & 16 deletions docs/development/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,3 @@ vagrant up && vagrant ssh
make test
make integration
```

## Test checkpassword script

```shell
# Start vagrant box and login
vagrant up && vagrant ssh
# Create DB schema and load fixtures
bin/console doctrine:schema:create
bin/console doctrine:fixture:load
# Run `app:users:checkpassword` locally. First should return `0`, second `1`
echo -en '[email protected]\0password' | ./bin/console app:users:checkpassword /bin/true; echo $?
echo -en '[email protected]\0wrong' | ./bin/console app:users:checkpassword /bin/true; echo $?
# Logout from vagrant and test via IMAP login
exit
./tests/test_checkpassword_login.sh
```
43 changes: 0 additions & 43 deletions docs/installation/checkpassword.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/mail_crypt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
The software has builtin support for
[Dovecot's mailbox encryption](https://wiki.dovecot.org/Plugins/MailCrypt), using the
[global keys mode](https://wiki.dovecot.org/Plugins/MailCrypt#Global_keys).
Keys are created and maintained by userli and handed over to Dovecot via
`checkpassword` script.
Keys are created and maintained by userli and handed over to Dovecot via an API.

The MailCrypt feature is enabled per default and can optionally be switched
off globally by setting `MAIL_CRYPT=0` in the dotenv (`.env`) file.
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ nav:
- "Getting started": getting-started/index.md
- Installation:
- Installation: installation/index.md
- Checkpassword: installation/checkpassword.md
- Commands: installation/commands.md
- Configuration: installation/configuration.md
- Customize: installation/customize.md
Expand Down
190 changes: 0 additions & 190 deletions src/Command/UsersCheckPasswordCommand.php

This file was deleted.

35 changes: 0 additions & 35 deletions src/Helper/FileDescriptorReader.php

This file was deleted.

Loading

0 comments on commit e6b4739

Please sign in to comment.