Page MenuHomePhabricator

D6096.diff
No OneTemporary

D6096.diff

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
@@ -157,7 +157,7 @@
}
const deleteAccountRequestInputValidator = tShape({
- password: tPassword,
+ password: t.maybe(tPassword),
});
async function accountDeletionResponder(
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

Mime Type
text/plain
Expires
Thu, Dec 19, 10:28 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679063
Default Alt Text
D6096.diff (1 KB)

Event Timeline