Skip to content

Commit 6183cae

Browse files
committed
Format
1 parent 05827d1 commit 6183cae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/handlers/src/compat/login.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,13 @@ async fn token_login(
515515
"Attempt to exchange login token but browser session is not active"
516516
);
517517
return Err(
518-
if browser_session.finished_at.is_some() || browser_session.user.deactivated_at.is_some() {
518+
if browser_session.finished_at.is_some()
519+
|| browser_session.user.deactivated_at.is_some()
520+
{
519521
RouteError::InvalidLoginToken
520522
} else {
521523
RouteError::UserLocked
522-
}
524+
},
523525
);
524526
}
525527

0 commit comments

Comments
 (0)