Merge pull request #933 from eeff/eeff/fix

fix: command `--reset-password`
This commit is contained in:
fengzeroz
2022-11-25 16:10:43 +08:00
committed by GitHub
+7 -1
View File
@@ -94,7 +94,13 @@ static inline int reset_password()
.hash =
"$5$PwFeXpBBIBZuZdZl$fP8fFPWCLoaWcnVXVSR.3Xi8TEqCvX92gjhowNNn6S4",
};
int rv = neu_persister_update_user(&info);
int rv = neu_persister_create();
if (0 != rv) {
return rv;
}
rv = neu_persister_update_user(&info);
return rv;
}