mirror of
https://github.com/diced/zipline.git
synced 2025-05-10 18:05:54 +02:00
fix: password being set when empty
This commit is contained in:
parent
e997250cf8
commit
fc98015950
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export default fastifyPlugin(
|
|||
|
||||
let password: string | null | undefined = undefined;
|
||||
if (req.body.password !== undefined) {
|
||||
if (req.body.password === null) {
|
||||
if (req.body.password === null || req.body.password === '') {
|
||||
password = null;
|
||||
} else if (typeof req.body.password === 'string') {
|
||||
password = await hashPassword(req.body.password);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue