hide user password on user creation #18
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								auth.py
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								auth.py
									
										
									
									
									
								
							|  | @ -14,7 +14,7 @@ def authenticate(username, hashed_password, pwdb): | |||
|     return hashed_password == pwdb[username] | ||||
| 
 | ||||
| def add_user(username, pwdb): | ||||
|     pwdb[username] = pwhash(input(f'Enter password for {username}: ')) | ||||
|     pwdb[username] = pwhash(getpass(f'Enter password for {username}: ')) | ||||
|     return pwdb | ||||
| 
 | ||||
| def read_pwdb(PWDB_PATH): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue