diff --git a/src/endpoints/UserEndpoint.ts b/src/endpoints/UserEndpoint.ts index 2d8b2df..a5096e5 100644 --- a/src/endpoints/UserEndpoint.ts +++ b/src/endpoints/UserEndpoint.ts @@ -20,6 +20,9 @@ export class UserEndpoint extends ScimEndpoint implements IScimEndpoint { public async _put(ctx: Context): Promise { const u = SCIMUser.fromPlain(ctx.content()); + if (ctx.id() === (await ctx.rc.getUserId())) { + u.active = true; + } const o = await ctx.rc.user.update({ userId: ctx.id(), data: {