summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 02:57:08 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 02:57:08 +0800
commit025b412716299fa943df505f4da4fd5cef8eb146 (patch)
tree3127a778db47874f57e71ef944ca2a36cf693aab /mbbsd/register.c
parent6245de5aeccde336f5debab6944ebd10ace22986 (diff)
downloadpttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar.gz
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar.bz2
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar.lz
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar.xz
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.tar.zst
pttbbs-025b412716299fa943df505f4da4fd5cef8eb146.zip
- fix regform2: skip all LOGIN_OK users
- add displaying T (reject regcode) information in single validation display - change user info display ordering to show perms in register validation view git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4095 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index bf62d322..5b96035e 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -1913,9 +1913,12 @@ ui_display_regform_single(
user_display(xuser, 1);
move(14, 0);
prints(ANSI_COLOR(1;32)
- "--------------- 這是第 %2d 份註冊單 ------------------"
+ "--------------- 這是第 %2d 份註冊單 -----------------------"
ANSI_RESET "\n", tid);
- prints(" %-12s: %s\n", "帳號", pre->userid);
+ prints(" %-12s: %s %s\n", "帳號", pre->userid,
+ (xuser->userlevel & PERM_NOREGCODE) ?
+ ANSI_COLOR(1;31) " [T:禁止使用認證碼註冊]" ANSI_RESET:
+ "");
prints("0.%-12s: %s%s\n", "真實姓名", pre->name,
xuser->uflag2 & FOREIGN ? " (外籍)" :
"");
@@ -2002,8 +2005,8 @@ regform2_validate_single(const char *xuid)
continue;
}
- // TODO check if user is already registered
-#ifdef DBG_DRYRUN
+#ifndef DBG_DRYRUN
+ // check if user is already registered
if (muser.userlevel & PERM_LOGINOK)
{
regfrm_delete(uid);
@@ -2121,8 +2124,8 @@ regform2_validate_page(int dryrun)
continue;
}
+#ifndef DBG_DRYRUN
// TODO check if user is already registered
-#ifdef DBG_DRYRUN
if (muser.userlevel & PERM_LOGINOK)
{
regfrm_delete(uid);
@@ -2619,7 +2622,7 @@ scan_register_form(const char *regfile, int automode, const char *target_uid)
move(14, 0);
prints(ANSI_COLOR(1;32) "------------- "
"請站長嚴格審核使用者資料,這是第 %d 份"
- "------------" ANSI_RESET "\n", tid);
+ "-----------------" ANSI_RESET "\n", tid);
prints(" %-12s: %s\n", finfo[0], fdata[0]);
#ifdef FOREIGN_REG
prints("0.%-12s: %s%s\n", finfo[1], fdata[1],