You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Verify that failed verification does NOT count towards quota
799
+
let phone_hash = test_phone_hasher().hash_phone_number(phone.as_str());
800
+
let failed_count = SmsVerificationRepository::count_verified_sessions_in_last_days(
801
+
&mut executor,
802
+
&phone_hash,
803
+
7,
804
+
)
805
+
.await
806
+
.unwrap();
807
+
assert_eq!(
808
+
failed_count,0,
809
+
"Failed verification should NOT count towards weekly quota"
810
+
);
797
811
}
798
812
799
813
// This circumstance happens if validate_code() is called before send_code() - Prelude has no prelude_id for the verification session yet so it returns a dummy value which doesnt match to anything in our db.
0 commit comments