zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 7c6cc07b9b4f04ca4bb0f933835134b0c9447e60
parent 618af4445850ec5f52576c91f79b7f293e906ca3
Author: srfsh <dev@srf.sh>
Date:   Tue, 19 Jul 2022 18:27:35 +0300

gql/mw/sign: use eddsa_public_key now

Diffstat:
Msrc/zenflows/gql/mw/sign.ex | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zenflows/gql/mw/sign.ex b/src/zenflows/gql/mw/sign.ex @@ -35,7 +35,7 @@ def call(res, _opts) do else with %{gql_user: user, gql_sign: sign, gql_body: body} <- res.context, per when not is_nil(per) <- Person.Domain.by_user(user), - true <- Restroom.verify_graphql?(body, sign, per.pubkeys) do + true <- Restroom.verify_graphql?(body, sign, per.eddsa_public_key) do res else _ -> Absinthe.Resolution.put_result(res, {:error, "you are not authenticated"})