MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / listUserEmails

Method listUserEmails

packages/server/src/commands/user.ts:47–57  ·  view source on GitHub ↗
(queryRunner: QueryRunner)

Source from the content-addressed store, hash-verified

45 }
46
47 async listUserEmails(queryRunner: QueryRunner) {
48 logger.info('Listing all user emails')
49 const users = await queryRunner.manager.find(User, {
50 select: ['email']
51 })
52
53 const emails = users.map((user) => user.email)
54 logger.info(`Email addresses: ${emails.join(', ')}`)
55 logger.info(`Email count: ${emails.length}`)
56 logger.info('To reset user password, run the following command: pnpm user --email "myEmail" --password "myPassword"')
57 }
58
59 async resetPassword(queryRunner: QueryRunner, email: string, password: string) {
60 logger.info(`Finding user by email: ${email}`)

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected