mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-03 19:36:20 +00:00 
			
		
		
		
	Clean guidelines
This commit is contained in:
		
							parent
							
								
									f233466e01
								
							
						
					
					
						commit
						92a4cea98c
					
				@ -270,13 +270,11 @@ module.exports = function (strapi) {
 | 
			
		||||
          strapi.token = config.token;
 | 
			
		||||
 | 
			
		||||
          socket.emit('getPublicKey', null, function (publicKey) {
 | 
			
		||||
            if (publicKey) {
 | 
			
		||||
            if (publicKey && strapi.config.environment === 'development') {
 | 
			
		||||
              const key = new RSA();
 | 
			
		||||
              let object;
 | 
			
		||||
              key.importKey(publicKey, 'public');
 | 
			
		||||
 | 
			
		||||
              if (strapi.config.environment === 'development') {
 | 
			
		||||
                object = {
 | 
			
		||||
              const object = {
 | 
			
		||||
                appId: strapi.config.studio.appId,
 | 
			
		||||
                appName: strapi.config.name,
 | 
			
		||||
                publicKey: strapi.rsa.exportKey('private'),
 | 
			
		||||
@ -288,7 +286,6 @@ module.exports = function (strapi) {
 | 
			
		||||
 | 
			
		||||
              socket.emit('check', key.encrypt(object));
 | 
			
		||||
            }
 | 
			
		||||
            }
 | 
			
		||||
          });
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user