From 4c5f3fbf7983ec64d4564c80578221ed57e2521e Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 11 Nov 2010 14:53:39 -0800 Subject: [PATCH] auth manager update, increased verbosity on salmon logs --- index.php | 1 + mod/amcd.php | 31 +++++++++++++++++++++++++++---- mod/salmon.php | 4 +++- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index abb528f951..91b864df81 100644 --- a/index.php +++ b/index.php @@ -30,6 +30,7 @@ $a->init_pagehead(); session_start(); +// header('Link: <' . $a->get_baseurl() . '/amcd>; rel="acct-mgmt";'); if((x($_SESSION,'authenticated')) || (x($_POST,'auth-params')) || ($a->module === 'login')) require("auth.php"); diff --git a/mod/amcd.php b/mod/amcd.php index 01c6b92da5..a2a1327e6d 100644 --- a/mod/amcd.php +++ b/mod/amcd.php @@ -1,10 +1,15 @@ verify($signed_data,$signature); - if(! $verify) + if(! $verify) { + logger('mod-salmon: message did not verify using protocol. Trying statusnet hack.'); $verify = $rsa->verify($stnet_signed_data,$signature); + } if(! $verify) { logger('mod-salmon: Message did not verify. Discarding.');