We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit aeaee388 authored by mattl's avatar mattl

Store remote magicsig public keys locally

parent 2d0155a5
......@@ -76,6 +76,10 @@ class MagicEnvelope
$magicsig = new Magicsig();
$magicsig->user_id = $profile->id;
// save the public key for this profile in our database.
// TODO: If the profile generates a new key remotely, we must be able to replace
// this (of course after callback-verification).
} elseif (!$magicsig instanceof Magicsig) { // No discovery request, so we'll give up.
throw new ServerException(sprintf('No public key found for profile (id==%d)', $profile->id));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment