theycallmesteve
6a8c65493f
Rename collection_user_details to collection_read_only to reflect the response model
5 years ago
theycallmesteve
dfdf4473ea
Rename to_json_list to to_json_provder to reflect the response model
5 years ago
theycallmesteve
632f4d5453
Whitespace fixes
5 years ago
Daniel García
9cca64003a
Remove unused dependency and simple feature, update dependencies and fix some clippy lints
5 years ago
Daniel García
e3b00b59a7
Initial support for soft deletes
5 years ago
BlackDex
1ee8e44912
Fixed issue #965
PostgreSQL updates/inserts ignored None/null values.
This is nice for new entries, but not for updates.
Added derive option to allways add these none/null values for Option<>
variables.
This solves issue #965
5 years ago
Daniel García
adf47827c9
Make sure the data field is always returned, otherwise the mobile apps seem to have issues
5 years ago
BlackDex
078234d8b3
Small change for rocket compatibilty
5 years ago
Daniel García
40c339db9b
Fix postgres policies, second try
5 years ago
Daniel García
819f340f39
Fix issue with postgres
5 years ago
Daniel García
3fa78e7bb1
Initial version of policies
5 years ago
Daniel García
325039c316
Attachment size limits, per-user and per-organization
5 years ago
Miro Prasil
03233429f4
Remove check from Invitation:take()
I've checked the spots when `Invitation::new()` and `Invitation::take()`
are used and it seems like all spots are already correctly gated. So to
enable invitations via admin API even when invitations are otherwise
disabled, this check can be removed.
5 years ago
Michael Powers
e196ba6e86
Switch error handling to ? operator instead of explicit handling.
5 years ago
Michael Powers
76743aee48
Fixes #635 - Unique constraint violation when using U2F tokens on PostgreSQL
Because of differences in how .on_conflict() works compared to .replace_into() the PostgreSQL backend wasn't correctly ensuring the unique constraint on user_uuid and atype wasn't getting violated.
This change simply issues a DELETE on the unique constraint prior to the insert to ensure uniqueness. PostgreSQL does not support multiple constraints in ON CONFLICT clauses.
5 years ago
tomuta
bd1e8be328
Implement change-email, email-verification, account-recovery, and welcome notifications
5 years ago
BlackDex
3442eb1b9d
Trying to fix issue #687
- Using an older commit from rocket repo
5 years ago
Daniel García
fccc0a4b05
Update rocket to latest master
Downgrade rust version to fix cargo issue
Set rustup profile to minimal
5 years ago
BlackDex
2cde814aaa
Fixed a bug with the sqlite backup feature.
When a custom path is used the backup feature does not work.
Changed it so it will take the path of the sqlite file and use that.
5 years ago
BlackDex
ebf40099f2
Updated authenticator TOTP
- Added security check for previouse used codes
- Allow TOTP codes with 1 step back and forward when there is a time
drift. This means in total 3 codes could be valid. But only newer codes
then the previouse used codes are excepted after that.
5 years ago
Daniel García
4c07f05b3a
Remove Result<T, E: Debug> in preparation of deprecation as Rocket responder.
Removed unnecessary returns
5 years ago
Michael Powers
f5f9861a78
Adds support for PostgreSQL which resolves #87 and is mentioned in #246 .
This includes migrations as well as Dockerfile's for amd64.
The biggest change is that replace_into isn't supported by Diesel for the
PostgreSQL backend, instead requiring the use of on_conflict. This
unfortunately requires a branch for save() on all of the models currently
using replace_into.
5 years ago
Daniel García
df8114f8be
Updated client kdf iterations to 100000 and fixed some lints
6 years ago
vpl
6d460b44b0
Use saved token for email 2fa codes
6 years ago
vpl
29aedd388e
Add email code logic and move two_factor into separate modules
6 years ago
Daniel García
05a1137828
Move backend checks to build.rs to fail fast, and updated dependencies
6 years ago
Daniel García
76f38621de
Update dependencies and remove unwraps from Cipher::to_json
6 years ago
Daniel García
12af32b9ea
Don't print DB URL
6 years ago
Nils Domrose
dc36f0cb6c
re-added sqlite check_db code, cleanup
6 years ago
Nils Domrose
ff759397f6
initial mysql support
6 years ago
Emil Madsen
233b48bdad
Fix missing joinable in schema
6 years ago
Emil Madsen
e22e290f67
Fix key and type variable names for mysql
6 years ago
Emil Madsen
ab95a69dc8
Rework migrations for MySQL
6 years ago
Emil Madsen
42af7c6dab
MySQL database
6 years ago
TheMardy
ef551f4cc6
Create Backup funcitonality
Added create backup functionality to the admin panel
6 years ago
Daniel García
0136c793b4
Implement better user status API, in the future we'll probably want a way to disable users.
We should migrate from the empty password hash to a separate column then.
6 years ago
Daniel García
621f607297
Update dependencies and fix some warnings
6 years ago
Daniel García
43f9038325
Add option to force resync clients in admin panel
6 years ago
Daniel García
7d2bc9e162
Added option to force 2fa at logins and made some changes to two factor code.
Added newlines to config options to keep them a reasonable length.
6 years ago
Дамјан Георгиевски
473f8b8e31
remove some unneeded mutability
6 years ago
Daniel García
9636f33fdb
Implement constant time equal check for admin, 2fa recover and 2fa remember tokens
6 years ago
Daniel García
8b4a6f2a64
Fixed some clippy lints and changed update_uuid_revision to only use one db query
6 years ago
Miroslav Prasil
08ca47cadb
Update revision when adding or removing cipher from collection
6 years ago
Miroslav Prasil
5272b465cc
Update revision of affected users when deleting Collection
6 years ago
Miroslav Prasil
bce656c787
Retry updating revision - fixes #383
6 years ago
Daniel García
bef1183c49
Only send one notification per vault import and purge, improve move ciphers functions
6 years ago
Daniel García
69036cc6a4
Add disabled user badge (no password) and deauthorize button to admin page.
6 years ago
Daniel García
700e084101
Add 2FA icon to admin panel
6 years ago
Daniel García
a1dc47b826
Change config to thread-safe system, needed for a future config panel.
Improved some two factor methods.
6 years ago
Daniel García
86de0ca17b
Fix editing users from collections menu
6 years ago