mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Remove requirement that auth and emails must be enabled
This commit is contained in:
parent
57a050ef01
commit
d36603973a
@ -102,20 +102,6 @@ const branchAppsSchema = yupObject({
|
||||
yupObject({
|
||||
enabled: yupBoolean(),
|
||||
}),
|
||||
).test(
|
||||
'authentication-and-emails-enabled',
|
||||
'authentication and emails must be installed and enabled',
|
||||
function(value) {
|
||||
const hasAuthentication = value['authentication'].enabled === true;
|
||||
const hasEmails = value['emails'].enabled === true;
|
||||
if (!hasAuthentication || !hasEmails) {
|
||||
return this.createError({
|
||||
message: 'authentication and emails must be installed and enabled',
|
||||
path: this.path,
|
||||
});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
),
|
||||
});
|
||||
// --- END NEW Apps Schema ---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user