mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fixes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
import { Dependencies } from '$lib/constants';
|
||||
import { Button, Form, FormList, InputSwitch } from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { project } from '../../store';
|
||||
|
||||
const projectId = $project.$id;
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
async function updatePasswordDictionary() {
|
||||
try {
|
||||
await sdkForConsole.projects.updateAuthPasswordDictionary(
|
||||
await sdk.forConsole.projects.updateAuthPasswordDictionary(
|
||||
projectId,
|
||||
passwordDictionary
|
||||
);
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Form on:submit={updatePasswordDictionary}>
|
||||
<Form onSubmit={updatePasswordDictionary}>
|
||||
<CardGrid>
|
||||
<Heading tag="h2" size="6">Password Dictionary</Heading>
|
||||
<svelte:fragment slot="aside">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import { Button, Form, InputNumber, InputSwitch } from '$lib/elements/forms';
|
||||
import FormList from '$lib/elements/forms/formList.svelte';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { project } from '../../store';
|
||||
|
||||
const projectId = $project.$id;
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
async function updatePasswordHistoryLimit() {
|
||||
try {
|
||||
await sdkForConsole.projects.updateAuthPasswordHistory(
|
||||
await sdk.forConsole.projects.updateAuthPasswordHistory(
|
||||
projectId,
|
||||
passwordHistoryEnabled ? passwordHistory : 0
|
||||
);
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Form on:submit={updatePasswordHistoryLimit}>
|
||||
<Form onSubmit={updatePasswordHistoryLimit}>
|
||||
<CardGrid>
|
||||
<Heading tag="h2" size="6">Password History</Heading>
|
||||
<svelte:fragment slot="aside">
|
||||
|
||||
Reference in New Issue
Block a user