summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-29 20:59:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-08-29 20:59:17 +0800
commite40b5f174956a652514959e367df348c0ad66d9f (patch)
tree857b4187351c304433b8f79c1f7b4a506b0132f9 /mbbsd/register.c
parentf70549636d72d203ed0f50fb66688319c3fcb878 (diff)
downloadpttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar.gz
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar.bz2
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar.lz
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar.xz
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.tar.zst
pttbbs-e40b5f174956a652514959e367df348c0ad66d9f.zip
* enable lastseen and CONST_CUSER, also use cuser_ref as "&cuser".
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4786 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 495fdfcd..224f480a 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -1,4 +1,5 @@
/* $Id$ */
+#define PWCU_IMPL
#include "bbs.h"
#define FN_REGISTER_LOG "register.log" // global registration history
@@ -1287,7 +1288,7 @@ toregister(char *email)
snprintf(cuser.justify, sizeof(cuser.justify),
"<Mobile>");
#endif
- email_justify(&cuser);
+ email_justify(cuser_ref);
}
}
@@ -1581,7 +1582,7 @@ u_register(void)
toregister(email);
// update cuser
- passwd_sync_update(usernum, &cuser);
+ passwd_sync_update(usernum, cuser_ref);
return FULLUPDATE;
}