fix: don't show posts from private profiles when quoted
fix: password updating (mod)
This commit is contained in:
parent
2ec56809b8
commit
03b252937b
8 changed files with 87 additions and 36 deletions
|
@ -387,7 +387,7 @@ impl DataManager {
|
|||
force: bool,
|
||||
) -> Result<()> {
|
||||
// verify password
|
||||
if (hash_salted(from.clone(), user.salt.clone()) != user.password) && !force {
|
||||
if !user.check_password(from.clone()) && !force {
|
||||
return Err(Error::MiscError("Password does not match".to_string()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue