hash the pass #13
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								auth.py
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								auth.py
									
										
									
									
									
								
							| 
						 | 
					@ -39,10 +39,10 @@ if __name__ == "__main__":
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        username, password = get_credentials()
 | 
					        username, password = get_credentials()
 | 
				
			||||||
        if username not in pwdb:
 | 
					        if username not in pwdb:
 | 
				
			||||||
            print('Wrong username!')
 | 
					            print('Wrong username or password!')
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            if authenticate(username, password, pwdb):
 | 
					            if authenticate(username, password, pwdb):
 | 
				
			||||||
                print('Successfully authenticated!')
 | 
					                print('Successfully authenticated!')
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                print('Wrong password!')
 | 
					                print('Wrong username or password!')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue