Commit doesn't work properly

I have two accounts A and B, with the same e-mail address.
A for the repository A, B for B.
Sending a commit/push with the account B, it will be listed as coming from A.
As A has no access for B, the commit is not merged.
I think, this is an issue.
How to create a call for this?