mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
Minor changes
This commit is contained in:
parent
7cad95893f
commit
f1083290af
1 changed files with 2 additions and 0 deletions
|
@ -584,12 +584,14 @@ if (elFormProofs) {
|
||||||
if (elProfileUid) {
|
if (elProfileUid) {
|
||||||
let match, opts, profileUid = elProfileUid.innerHTML;
|
let match, opts, profileUid = elProfileUid.innerHTML;
|
||||||
if (/.*@.*/.test(profileUid)) {
|
if (/.*@.*/.test(profileUid)) {
|
||||||
|
// Match email for wkd
|
||||||
match = profileUid.match(/(.*)@(.*)_([a-zA-Z0-9]+)$/);
|
match = profileUid.match(/(.*)@(.*)_([a-zA-Z0-9]+)$/);
|
||||||
opts = {
|
opts = {
|
||||||
input: `${match[1]}@${match[2]}.${match[3]}`,
|
input: `${match[1]}@${match[2]}.${match[3]}`,
|
||||||
mode: "wkd"
|
mode: "wkd"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// Match fingerprint for hkp
|
||||||
opts = {
|
opts = {
|
||||||
input: profileUid,
|
input: profileUid,
|
||||||
mode: "hkp"
|
mode: "hkp"
|
||||||
|
|
Loading…
Reference in a new issue