summaryrefslogtreecommitdiffabout
path: root/lib
authorMichael Krelin <hacker@klever.net>2008-02-03 20:12:50 (UTC)
committer Michael Krelin <hacker@klever.net>2008-02-03 20:12:50 (UTC)
commitc0eeee1cfd41d0f5f6ff6ac3d6fe021421376a69 (patch) (side-by-side diff)
tree56e8cfa835f63d1c9f9938ff851d54dbbad0b861 /lib
parent7ee5acb351f43fa650de138f8d2a3bda73ab27a0 (diff)
downloadlibopkele-c0eeee1cfd41d0f5f6ff6ac3d6fe021421376a69.zip
libopkele-c0eeee1cfd41d0f5f6ff6ac3d6fe021421376a69.tar.gz
libopkele-c0eeee1cfd41d0f5f6ff6ac3d6fe021421376a69.tar.bz2
openid 1 compatibility fix in OP
I shouldn't be failing if there's no claimed_id field for OpenID 1 request. Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'lib') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/basic_op.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/basic_op.cc b/lib/basic_op.cc
index 11ffb48..c89d1d7 100644
--- a/lib/basic_op.cc
+++ b/lib/basic_op.cc
@@ -185,6 +185,7 @@ namespace opkele {
if(openid2)
throw bad_input(OPKELE_CP_
"claimed_id and identity must be either both present or both absent");
+ claimed_id = identity;
}
}catch(failed_lookup&) {
if(openid2 && inm.has_field("claimed_id"))