Compare commits
	
		
			2 Commits
		
	
	
		
			42fff36545
			...
			81ea634b3a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 81ea634b3a | |||
| 5e1e9f3e69 | 
@@ -47,7 +47,6 @@ class Authetication:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        for user in data['user']:
 | 
					        for user in data['user']:
 | 
				
			||||||
            if username == user['username']:
 | 
					            if username == user['username']:
 | 
				
			||||||
                b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
 | 
					 | 
				
			||||||
                try:
 | 
					                try:
 | 
				
			||||||
                    b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
 | 
					                    b64pwd = b64encode(SHA256.new(password.encode('utf-8')).digest())
 | 
				
			||||||
                    bcrypt_check(b64pwd, user['password'].encode('utf-8'))
 | 
					                    bcrypt_check(b64pwd, user['password'].encode('utf-8'))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user