Skip to content

Commit

Permalink
fix(webserver): Better error message when the email does not match th…
Browse files Browse the repository at this point in the history
…e code (#1586)

* fix(webserver): Better error message when the email does not match the code

* Update ee/tabby-webserver/src/service/auth.rs

---------

Co-authored-by: Meng Zhang <[email protected]>
  • Loading branch information
boxbeam and wsxiaoys committed Feb 29, 2024
1 parent d1cefa5 commit 22e06c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/service/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ async fn check_invitation(
};

if invitation.email != email {
return err;
return Err(anyhow!("Invitation code is not for this email address").into());
}

Ok(Some(invitation))
Expand Down

0 comments on commit 22e06c1

Please sign in to comment.