Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492729
D6096.id20327.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6096.id20327.diff
View Options
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -156,16 +156,11 @@
};
}
-const deleteAccountRequestInputValidator = tShape({
- password: tPassword,
-});
-
async function accountDeletionResponder(
viewer: Viewer,
input: any,
): Promise<LogOutResponse> {
const request: DeleteAccountRequest = input;
- await validateInput(viewer, deleteAccountRequestInputValidator, request);
const result = await deleteAccount(viewer, request);
invariant(result, 'deleteAccount should return result if handed request');
return result;
diff --git a/lib/actions/user-actions.js b/lib/actions/user-actions.js
--- a/lib/actions/user-actions.js
+++ b/lib/actions/user-actions.js
@@ -57,7 +57,7 @@
const deleteAccount = (
callServerEndpoint: CallServerEndpoint,
): ((
- password: string,
+ password: ?string,
preRequestUserState: PreRequestUserState,
) => Promise<LogOutResult>) => async (password, preRequestUserState) => {
const response = await callServerEndpoint('delete_account', { password });
diff --git a/lib/types/account-types.js b/lib/types/account-types.js
--- a/lib/types/account-types.js
+++ b/lib/types/account-types.js
@@ -72,7 +72,7 @@
};
export type DeleteAccountRequest = {
- +password: string,
+ +password: ?string,
};
export const logInActionSources = Object.freeze({
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 1:11 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679446
Default Alt Text
D6096.id20327.diff (1 KB)
Attached To
Mode
D6096: Soften requirement for password in account deletion request
Attached
Detach File
Event Timeline
Log In to Comment