Skip to content

Commit 5e2210c

Browse files
committed
GPG key email verification no longer case sensitive (go-gitea#2661)
Signed-off-by: Julian Scholle <[email protected]>
1 parent 6b62f04 commit 5e2210c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/gpg_key.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ func ParseCommitWithSignature(c *git.Commit) *CommitVerification {
402402
//Pre-check (& optimization) that emails attached to key can be attached to the commiter email and can validate
403403
canValidate := false
404404
for _, e := range k.Emails {
405-
if e.IsActivated && e.Email == c.Committer.Email {
405+
if e.IsActivated && strings.ToLower(e.Email) == strings.ToLower(c.Committer.Email) {
406406
canValidate = true
407407
break
408408
}

0 commit comments

Comments
 (0)