diff options
author | BlackDex <[email protected]> | 2021-11-05 19:18:54 +0100 |
---|---|---|
committer | BlackDex <[email protected]> | 2021-11-06 17:44:53 +0100 |
commit | c453528dc10d92c76776a7c96dd8de178a14cfff (patch) | |
tree | 223362f75c44f8711589ee1d206738b171a86fca /src/auth.rs | |
parent | 6ae48aa8c258c0b3d53966e6abb2d9756e65f56d (diff) | |
download | vaultwarden-c453528dc10d92c76776a7c96dd8de178a14cfff.tar.gz vaultwarden-c453528dc10d92c76776a7c96dd8de178a14cfff.zip |
Macro recursion decrease and other optimizations
- Decreased `recursion_limit` from 512 to 87
Mainly done by optimizing the config macro's.
This fixes an issue with the rust-analyzer which doesn't go beyond 128
- Removed Regex for masking sensitive values and replaced it with a map()
This is much faster then using a Regex.
- Refactored the get_support_json macro's
- All items above also lowered the binary size and possibly compile-time
- Removed `_conn: DbConn` from several functions, these caused unnecessary database connections for functions who didn't used that at all
- Decreased json response for `/plans`
- Updated libraries and where needed some code changes
This also fixes some rare issues with SMTP https://github.com/lettre/lettre/issues/678
- Using Rust 2021 instead of 2018
- Updated rust nightly
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs index bbcea5c8..741d4e95 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -165,7 +165,6 @@ pub fn generate_invite_claims( } } -// var token = _dataProtector.Protect($"EmergencyAccessInvite {emergencyAccess.Id} {emergencyAccess.Email} {nowMillis}"); #[derive(Debug, Serialize, Deserialize)] pub struct EmergencyAccessInviteJwtClaims { // Not before |