Browse Source
Merge branch 'ghostfolio:main' into main
pull/3194/head
Christoph Califice
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
7 additions and
5 deletions
-
CHANGELOG.md
-
apps/api/src/app/user/user.service.ts
-
package.json
|
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. |
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
## 2.67.0 - 2024-03-26 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Replaced `Math.random()` with `crypto.randomBytes()` for generating cryptographically secure random strings |
|
|
|
- Upgraded `ionicons` from version `7.1.0` to `7.3.0` |
|
|
|
- Upgraded `yahoo-finance2` from version `2.10.0` to `2.11.0` |
|
|
|
- Upgraded `zone.js` from version `0.14.3` to `0.14.4` |
|
|
|
|
|
@ -452,14 +452,15 @@ export class UserService { |
|
|
|
} |
|
|
|
|
|
|
|
private getRandomString(length: number) { |
|
|
|
const bytes = crypto.randomBytes(length); |
|
|
|
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; |
|
|
|
const result = []; |
|
|
|
|
|
|
|
for (let i = 0; i < length; i++) { |
|
|
|
result.push( |
|
|
|
characters.charAt(Math.floor(Math.random() * characters.length)) |
|
|
|
); |
|
|
|
const randomByte = bytes[i]; |
|
|
|
result.push(characters[randomByte % characters.length]); |
|
|
|
} |
|
|
|
|
|
|
|
return result.join(''); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
{ |
|
|
|
"name": "ghostfolio", |
|
|
|
"version": "2.66.3", |
|
|
|
"version": "2.67.0", |
|
|
|
"homepage": "https://ghostfol.io", |
|
|
|
"license": "AGPL-3.0", |
|
|
|
"repository": "https://github.com/ghostfolio/ghostfolio", |
|
|
|