Stop returning correct password on api calls
Captured invalid signature exception in authentication step, so that the problem is not returning exception to user, revealing the real password. Fixes bug 868360. Change-Id: Idb31f076a7b14309f0fda698261de816924da354
This commit is contained in:
		
				
					committed by
					
						
						Stanislaw Pitucha
					
				
			
			
				
	
			
			
			
						parent
						
							342fb9feee
						
					
				
				
					commit
					77c741b41c
				
			@@ -149,11 +149,7 @@ class User(AuthBase):
 | 
			
		||||
        return AuthManager().is_project_manager(self, project)
 | 
			
		||||
 | 
			
		||||
    def __repr__(self):
 | 
			
		||||
        return "User('%s', '%s', '%s', '%s', %s)" % (self.id,
 | 
			
		||||
                                                     self.name,
 | 
			
		||||
                                                     self.access,
 | 
			
		||||
                                                     self.secret,
 | 
			
		||||
                                                     self.admin)
 | 
			
		||||
        return "User('%s', '%s')" % (self.id, self.name)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Project(AuthBase):
 | 
			
		||||
@@ -200,9 +196,7 @@ class Project(AuthBase):
 | 
			
		||||
        return AuthManager().get_credentials(user, self)
 | 
			
		||||
 | 
			
		||||
    def __repr__(self):
 | 
			
		||||
        return "Project('%s', '%s', '%s', '%s', %s)" % \
 | 
			
		||||
            (self.id, self.name, self.project_manager_id, self.description,
 | 
			
		||||
             self.member_ids)
 | 
			
		||||
        return "Project('%s', '%s')" % (self.id, self.name)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class AuthManager(object):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user