|  | @@ -416,12 +416,18 @@ class labkeyBrowserWidget(ScriptedLoadableModuleWidget):
 | 
	
		
			
				|  |  |    def onInitButtonClicked(self):
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        self.network.connectionConfig=self.generateConfig()
 | 
	
		
			
				|  |  | +      print(self.network.connectionConfig['labkey']['user'])
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        self.network.initRemote()
 | 
	
		
			
				|  |  | -      if self.network.getCSRF()==None:
 | 
	
		
			
				|  |  | +      remoteId=self.network.getUserId()
 | 
	
		
			
				|  |  | +      if remoteId==None:
 | 
	
		
			
				|  |  |            self.initButton.setStyleSheet("background-color: red")
 | 
	
		
			
				|  |  |        else:
 | 
	
		
			
				|  |  | -          self.initButton.setStyleSheet("background-color: green")
 | 
	
		
			
				|  |  | +          if remoteId['email']==self.network.connectionConfig['labkey']['user']:
 | 
	
		
			
				|  |  | +              self.initButton.setStyleSheet("background-color: green")
 | 
	
		
			
				|  |  | +          else:
 | 
	
		
			
				|  |  | +              self.initButton.setStyleSheet("background-color: orange")
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    #def updateAuthName(self,txt):
 | 
	
		
			
				|  |  |        #self.network.auth_name=txt
 |