Object quotas implementation
This commit is contained in:
@@ -119,7 +119,7 @@ impl ClientRegistrationHandler for Server {
|
||||
.filter(|p| p.typ() == Type::OauthClient)
|
||||
{
|
||||
if let Some(redirect_uri) = redirect_uri {
|
||||
if client.urls().iter().any(|uri| uri == redirect_uri) {
|
||||
if client.urls().any(|uri| uri == redirect_uri) {
|
||||
return Ok(None);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -210,8 +210,8 @@ impl Autoconfig for Server {
|
||||
.query(QueryParams::id(id).with_return_member_of(false))
|
||||
.await
|
||||
&& principal
|
||||
.emails
|
||||
.first()
|
||||
.emails()
|
||||
.next()
|
||||
.is_some_and(|email| email.eq_ignore_ascii_case(emailaddress))
|
||||
{
|
||||
account_name = principal.name;
|
||||
|
||||
@@ -710,7 +710,7 @@ impl PrincipalManager for Server {
|
||||
.await?
|
||||
.ok_or_else(|| trc::ManageEvent::NotFound.into_err())?;
|
||||
|
||||
for secret in &principal.secrets {
|
||||
for secret in principal.secrets() {
|
||||
if secret.is_otp_auth() {
|
||||
response.otp_auth = true;
|
||||
} else if let Some((app_name, _)) =
|
||||
|
||||
Reference in New Issue
Block a user