vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 12928b832c8354a9d81fe984e378f60353cca3b3
parent 1e224220a855fb65263d9b67df2a520791b5a882
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 30 Nov 2019 23:30:35 +0100

Fix broken tests

Diffstat:
Msrc/api/core/two_factor/email.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/core/two_factor/email.rs b/src/api/core/two_factor/email.rs @@ -321,14 +321,14 @@ mod tests { #[test] fn test_token() { - let result = generate_token(19).unwrap(); + let result = crypto::generate_token(19).unwrap(); assert_eq!(result.chars().count(), 19); } #[test] fn test_token_too_large() { - let result = generate_token(20); + let result = crypto::generate_token(20); assert!(result.is_err(), "too large token should give an error"); }