mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
setup: Make the check more resilient
ed25519 keys start with the ssh-ed25519 prefix. Okay, this mechanism sucks. I should just figure out how to parse the keys. Related to #516
This commit is contained in:
@ -24,7 +24,7 @@ class PublicKeyEditor extends StatelessWidget {
|
||||
}
|
||||
|
||||
val = val.trim();
|
||||
if (!val.startsWith("ssh-rsa ") && !val.startsWith("ecdsa-sha2")) {
|
||||
if (!val.startsWith("ssh-") && !val.startsWith("ecdsa-")) {
|
||||
return tr("setup.keyEditors.public");
|
||||
}
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user