diff options
Diffstat (limited to 'src/api/core/accounts.rs')
-rw-r--r-- | src/api/core/accounts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 556d15e5..9db46a0b 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -78,7 +78,7 @@ fn register(data: JsonUpcase<RegisterData>, conn: DbConn) -> EmptyResult { }; let claims: InviteJWTClaims = decode_invite_jwt(&token)?; - if &claims.email == &data.Email { + if claims.email == data.Email { user } else { err!("Registration email does not match invite email") |