author | Michael Krelin <hacker@klever.net> | 2008-02-03 20:12:50 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-02-03 20:12:50 (UTC) |
commit | c0eeee1cfd41d0f5f6ff6ac3d6fe021421376a69 (patch) (side-by-side diff) | |
tree | 56e8cfa835f63d1c9f9938ff851d54dbbad0b861 | |
parent | 7ee5acb351f43fa650de138f8d2a3bda73ab27a0 (diff) | |
download | libopkele-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>
-rw-r--r-- | lib/basic_op.cc | 1 |
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 @@ -182,12 +182,13 @@ namespace opkele { try { claimed_id = inm.get_field("claimed_id"); }catch(failed_lookup&) { 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")) throw bad_input(OPKELE_CP_ "claimed_id and identity must be either both present or both absent"); } |