feat: allow Custom OAuth provider to not fill in email and avatarUrl in configuring user_mapping (#4035)

This commit is contained in:
Seele.Clover
2025-08-04 12:26:12 +08:00
committed by GitHub
parent e0d9cc7ed1
commit 124c28f1e1

View File

@@ -174,7 +174,11 @@ class ProviderEditPage extends React.Component {
}
}
provider.userMapping[key] = value;
if (value === "") {
delete provider.userMapping[key];
} else {
provider.userMapping[key] = value;
}
this.setState({
provider: provider,