mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
Fix AUTH time difference check
This commit is contained in:
parent
b4e3f8a06d
commit
3498c7dd46
@ -334,7 +334,7 @@ impl WebSocketService {
|
||||
|
||||
// Verify the created_at timestamp is within reason
|
||||
let timediff = (Time::now().0 as i64).abs_diff(event.created_at().0 as i64);
|
||||
if timediff < 600 {
|
||||
if timediff > 600 {
|
||||
return Err(
|
||||
ChorusError::AuthFailure("Time is more than 10 minutes off".to_string()).into(),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user