mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'tex-patch-pgp-key-errmsg' into 'master'
Expand PGP validation error message Closes #524 See merge request archlinux/aurweb!830
This commit is contained in:
commit
7e88efa53b
1 changed files with 8 additions and 1 deletions
|
@ -107,7 +107,14 @@ def invalid_homepage(HP: str = str(), **kwargs) -> None:
|
||||||
|
|
||||||
def invalid_pgp_key(K: str = str(), **kwargs) -> None:
|
def invalid_pgp_key(K: str = str(), **kwargs) -> None:
|
||||||
if K and not util.valid_pgp_fingerprint(K):
|
if K and not util.valid_pgp_fingerprint(K):
|
||||||
raise ValidationError(["The PGP key fingerprint is invalid."])
|
raise ValidationError(
|
||||||
|
[
|
||||||
|
"The PGP key fingerprint is invalid. "
|
||||||
|
"Only full fingerprints are accepted. "
|
||||||
|
"Use `gpg --list-keys --fingerprint KEYID` to obtain a valid "
|
||||||
|
"fingerprint."
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def invalid_ssh_pubkey(
|
def invalid_ssh_pubkey(
|
||||||
|
|
Loading…
Add table
Reference in a new issue