Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Conduit Conduit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • Famedly
  • ConduitConduit
  • Merge requests
  • !354

added a command to the admin bot to create a new user, even with registration disabled

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged rmsthebest requested to merge rmsthebest/conduit:create-user-command into next May 01, 2022
  • Overview 1
  • Commits 1
  • Pipelines 3
  • Changes 2

I've added a command to the admin bot to create a new user, even with registration disabled. Besides running cargo test I also did this:

  1. Run conduit env CONDUIT_CONFIG=./tests/test-config.toml cargo run --release
  2. run element web instance with docker docker run -p 80:80 vectorim/element-web
  3. open localhost:80 and interact with server on http://localhost:6167
  4. create an admin user the normal way
  5. in admin chat I wrote @conduit:localhost: create-user tony
  6. logged in as user and sent message to admin
  7. checked I received the message

But I'm not very familiar with conduit code yet so please independently test and verify before approving anything.


  • I ran cargo fmt and cargo test
  • I agree to release my code and all other changes of this MR under the Apache-2.0 license
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: create-user-command