Fix Clippy warning
This commit is contained in:
parent
bc95ba286b
commit
84a7d1d7c8
@ -630,7 +630,7 @@ pub async fn sign_in(
|
||||
.map_err(|e| anyhow!("Failed message verification: {}", e))?;
|
||||
|
||||
let domain = params.redirect_uri.url();
|
||||
if let Some(r) = siwe_cookie.message.resources.get(0) {
|
||||
if let Some(r) = siwe_cookie.message.resources.first() {
|
||||
if *domain != Url::from_str(r.as_ref()).unwrap() {
|
||||
return Err(anyhow!("Conflicting domains in message and redirect").into());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user