Skip to content

Commit

Permalink
remove weird squash and merge artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jjj333-p committed Jan 16, 2024
1 parent 76e5780 commit 11307a3
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,25 +245,6 @@ async function evacuateUser(mxid){
makeDendriteReq("POST", "evacuateUser", mxid)
}

async function resetUserPwd (localpart, password, logout){

let userMxid = "@" + localpart + ":" + server

if (!password) password = generateSecureOneTimeCode(35)

makeDendriteReq("POST", "resetPassword", userMxid, null, {
password:password,
logout_devices:logout
})

return (password)

}

async function evacuateUser(mxid){
makeDendriteReq("POST", "evacuateUser", mxid)
}

async function purgeRoom(roomId){
makeDendriteReq("POST", "purgeRoom", roomId)
}
Expand Down Expand Up @@ -394,10 +375,6 @@ commandHandlers.set("passwd", async ({contentByWords, event}) => {

client.sendHtmlNotice(adminRoom, ("(Attempted to) reset password of user <code>" + user + "</code> to <code>" + setpasswd + "</code>"))



// resetUserPwd(localpart)

})

commandHandlers.set("deactivate", async ({contentByWords, event}) => {
Expand Down

0 comments on commit 11307a3

Please sign in to comment.