mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-31 07:31:01 +00:00
relay management auth doesn't need a method check anymore
This commit is contained in:
parent
1fde129c05
commit
3820813393
@ -81,17 +81,6 @@ pub async fn check_auth(request: Request<Incoming>) -> Result<Value, Error> {
|
||||
|
||||
let tags = event.tags()?;
|
||||
|
||||
// Tag 'method' must be POST
|
||||
if let Some(method) = tags.get_value(b"method") {
|
||||
if method != b"POST" && method != b"post" {
|
||||
return s_err(
|
||||
"Authorization event did not authorize POST (and only POST is supported here)",
|
||||
);
|
||||
}
|
||||
} else {
|
||||
return s_err("Authorization event method missing");
|
||||
}
|
||||
|
||||
// Tag 'u' must be the current URL
|
||||
if let Some(u) = tags.get_value(b"u") {
|
||||
let auth_url = String::from_utf8(u.to_owned())?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user