projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a456e5
)
Added an aide_message() when an OpenID is claimed
author
Art Cancro
<ajc@citadel.org>
Tue, 10 Jun 2008 02:31:56 +0000
(
02:31
+0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 10 Jun 2008 02:31:56 +0000
(
02:31
+0000)
citadel/modules/openid/serv_openid_rp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/openid/serv_openid_rp.c
b/citadel/modules/openid/serv_openid_rp.c
index 3b0b639a68f989e30264906bb1b510266206cc3c..05fbccea1efc87b07a97bdd8563d88937e29e615 100644
(file)
--- a/
citadel/modules/openid/serv_openid_rp.c
+++ b/
citadel/modules/openid/serv_openid_rp.c
@@
-78,6
+78,7
@@
int attach_openid(struct ctdluser *who, char *claimed_id)
long fetched_usernum;
char *data;
int data_len;
long fetched_usernum;
char *data;
int data_len;
+ char buf[2048];
if (!who) return(1);
if (!claimed_id) return(1);
if (!who) return(1);
if (!claimed_id) return(1);
@@
-111,8
+112,10
@@
int attach_openid(struct ctdluser *who, char *claimed_id)
cdb_store(CDB_OPENID, claimed_id, strlen(claimed_id), data, data_len);
free(data);
cdb_store(CDB_OPENID, claimed_id, strlen(claimed_id), data, data_len);
free(data);
- CtdlLogPrintf(CTDL_INFO, "%s has been attached to %s (%ld)\n",
- claimed_id, who->fullname, who->usernum);
+ snprintf(buf, sizeof buf, "User <%s> (#%ld) has claimed the OpenID URL %s\n",
+ who->fullname, who->usernum, claimed_id);
+ aide_message(buf, "OpenID claim");
+ CtdlLogPrintf(CTDL_INFO, "%s", buf);
return(0);
}
return(0);
}