mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 13:51:14 +00:00 
			
		
		
		
	Add a explaination to the password hint message #85
This commit is contained in:
		
					parent
					
						
							
								c031ae9f2f
							
						
					
				
			
			
				commit
				
					
						d3b4b10d18
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -263,7 +263,10 @@ fn password_hint(data: JsonUpcase<PasswordHintData>, conn: DbConn) -> EmptyResul | |||
|     } | ||||
| 
 | ||||
|     match User::find_by_mail(&data.Email, &conn) { | ||||
|         Some(user) => err!(user.password_hint.to_owned().unwrap_or("".to_string())), | ||||
|         Some(user) => { | ||||
|             let hint = user.password_hint.to_owned().unwrap_or_default(); | ||||
|             err!(format!("Your password hint is: {}", hint)) | ||||
|         }, | ||||
|         None => Ok(()), | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue