User sync fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-10-31 02:53:48 +01:00
parent 7763bcc1ef
commit f39fa33b83
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ module.exports = Self => {
if (await $.user.exists(user.id))
await $.user.replaceById(user.id, appUser);
else
else if (bcryptPassword)
await $.user.upsert(appUser);
} else
await $.user.destroyAll({username: userName});