mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) add a tool for deleting a user
Summary: This adds a `user:delete` target to the `cli.sh` tool. The desired user will be deleted from our database, from sendgrid, and from cognito. There is code for scrubbing the user from team sites, but it isn't yet activated, I'm leaving finalizing and writing tests for it for follow-up. Test Plan: tested manually Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3043
This commit is contained in:
@@ -15,7 +15,8 @@ export const create: ICreate = {
|
||||
},
|
||||
Notifier() {
|
||||
return {
|
||||
get testPending() { return false; }
|
||||
get testPending() { return false; },
|
||||
deleteUser() { throw new Error('deleteUser unavailable'); },
|
||||
};
|
||||
},
|
||||
Shell() {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { GristLoginMiddleware, GristServer } from 'app/server/lib/GristServer';
|
||||
import { getMinimalLoginMiddleware } from 'app/server/lib/MinimalLogin';
|
||||
import { getSamlLoginMiddleware } from 'app/server/lib/SamlConfig';
|
||||
import { GristLoginSystem } from 'app/server/lib/GristServer';
|
||||
import { getMinimalLoginSystem } from 'app/server/lib/MinimalLogin';
|
||||
import { getSamlLoginSystem } from 'app/server/lib/SamlConfig';
|
||||
|
||||
export async function getLoginMiddleware(gristServer: GristServer): Promise<GristLoginMiddleware> {
|
||||
const saml = await getSamlLoginMiddleware(gristServer);
|
||||
export async function getLoginSystem(): Promise<GristLoginSystem> {
|
||||
const saml = await getSamlLoginSystem();
|
||||
if (saml) { return saml; }
|
||||
return getMinimalLoginMiddleware(gristServer);
|
||||
return getMinimalLoginSystem();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user