mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
* sanitize storagelabel when creating a user #3346 * code formatting
This commit is contained in:
parent
523e7d4742
commit
7dd88c4114
@ -97,7 +97,7 @@ export class UserCore {
|
||||
payload.password = await this.cryptoRepository.hashBcrypt(payload.password, SALT_ROUNDS);
|
||||
}
|
||||
if (payload.storageLabel) {
|
||||
payload.storageLabel = sanitize(payload.storageLabel);
|
||||
payload.storageLabel = sanitize(payload.storageLabel.replace(/\./g, ''));
|
||||
}
|
||||
const userEntity = await this.userRepository.create(payload);
|
||||
await this.libraryRepository.create({
|
||||
|
Loading…
Reference in New Issue
Block a user