Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add password personal data check #405

Merged
merged 11 commits into from
Aug 8, 2023
Merged

Conversation

christyjacob4
Copy link
Member

@christyjacob4 christyjacob4 commented Apr 15, 2023

What does this PR do?

Adds support for disallowing personal data in passwords

Screen.Recording.2023-04-15.at.2.15.16.PM.mov

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

@vercel
Copy link

vercel bot commented Apr 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 8:38pm
console-1-3-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 8:38pm
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 8:38pm
console-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2023 8:38pm

@@ -3,7 +3,7 @@ import { page } from '$app/stores';
import type { Models } from '@appwrite.io/console';
import type { BarSeriesOption } from 'echarts/charts';

export const project = derived(page, ($page) => $page.data.project as Models.Project);
export const project = derived(page, ($page) => $page.data.project as Models.Project | any);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it need the any? 🤔 and if it's really necessary would it work with unknown?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have the new project model which has the disallowPersonalData attribute since we are not using the generated SDK yet.

@TorstenDittmann asked me to patch it up this way and have all the changes in one single branch ( main ) in this case and he'd generate & release a new console sdk after all changes are in there

async function updatePersonalDataCheck() {
try {
const path = '/projects/' + $project.$id + '/auth/personal-data';
await sdk.forConsole.client.call(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any plans to add this to the SDK?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArmanNik yes, Torsten said we'd do it once all the changes for 1.4 are merged.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved 👍

@christyjacob4 christyjacob4 changed the base branch from main to 1.4.x August 8, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants