Skip to content

Commit

Permalink
[keyserver] script to reset a user's password
Browse files Browse the repository at this point in the history
Summary:
Depends on D13764

script that resets the password for a given user

Test Plan: registered a user with identity, modified staff user list on identity to include my keyserver's user ID, then ran script and changed registered user's password. successfully logged in with new password

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13765
  • Loading branch information
vdhanan committed Oct 22, 2024
1 parent 66038a5 commit 4fd3123
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions keyserver/src/scripts/reset-identity-user-password.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// @flow

import { main } from './utils.js';
import { privilegedResetUserPassword } from '../utils/identity-utils.js';

async function resetIdentityUserPassword() {
const targetUsername = '';
const password = '';
await privilegedResetUserPassword(targetUsername, password);
}

main([resetIdentityUserPassword]);

0 comments on commit 4fd3123

Please sign in to comment.