mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03:00
refactor(server): new password repo method (#8208)
This commit is contained in:
@@ -41,4 +41,8 @@ export class CryptoRepository implements ICryptoRepository {
|
||||
stream.on('end', () => resolve(hash.digest()));
|
||||
});
|
||||
}
|
||||
|
||||
newPassword(bytes: number) {
|
||||
return randomBytes(bytes).toString('base64').replaceAll(/\W/g, '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user