Fix user's sign email check (#35045)
Some checks failed
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been cancelled

Fix #21692
This commit is contained in:
wxiaoguang
2025-07-12 15:13:01 +08:00
committed by GitHub
parent 6090d70915
commit 6599efb3b1
4 changed files with 55 additions and 30 deletions

View File

@@ -13,9 +13,9 @@ import (
"xorm.io/builder"
)
// The database is used in checkKeyFingerprint however most of these functions probably belong in a module
// The database is used in checkKeyFingerprint. However, most of these functions probably belong in a module
// checkKeyFingerprint only checks if key fingerprint has been used as public key,
// checkKeyFingerprint only checks if key fingerprint has been used as a public key,
// it is OK to use same key as deploy key for multiple repositories/users.
func checkKeyFingerprint(ctx context.Context, fingerprint string) error {
has, err := db.Exist[PublicKey](ctx, builder.Eq{"fingerprint": fingerprint})

View File

@@ -9,3 +9,4 @@
created_unix: 1559593109
updated_unix: 1565224552
login_source_id: 0
verified: false