How to forbid commit/author as another user

Hi All,

Currently we have a gitlab(10.5.4) server installed with omnibus gitlab-ce package. We are having an issue similar to below stackoverflow question:

Let’s say my user is Celal with the email address & I have another colleague registered in gitlab whose name is John with the email address

When I set my & as Jonh’s, i.e.:

git config “John”
git config “

Then commit & push my changes, the author of the commit will be John.

Is there a way to avoid this? To me it seems like anyone can impersonate any registered user on gitlab server by manipulation &

Is there any workaround to that?

Thanks in advance!