User sync fixes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
7763bcc1ef
commit
f39fa33b83
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue