Skip to content

Commit

Permalink
Fix reset password (#7767)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Mar 1, 2024
1 parent 1c1474e commit 709ff70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/common/src/services/audius-backend/AudiusBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1678,9 +1678,9 @@ export const audiusBackend = ({
)
}

async function resetPassword(email: string, password: string) {
await waitForLibsInit()
return audiusLibs.Account.resetPassword(email, password)
async function resetPassword(username: string, password: string) {
const libs = await getAudiusLibsTyped()
return libs.Account!.resetPassword({ username, password })
}

async function sendRecoveryEmail() {
Expand Down

0 comments on commit 709ff70

Please sign in to comment.