mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:39:03 -04: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user