Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,16 @@ export class Auth {
}

/**
* Upgrade hash in the database
* Upgrade hash and salt in the database
* @param newHash
* @param newSalt
*/
public upgradeHash(newHash: string): Promise<void> {
public upgradeHash(newHash: string, newSalt: string): Promise<void> {
return this.client.patch(
'/users/:id',
{
newPassword: newHash,
newSalt:'',
newSalt: newSalt,
},
this.basicHeaders(),
);
Expand Down