diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-17 14:15:04 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-17 14:15:04 +0800 |
commit | e0697cc2d7d35fb7e5458edd8505908dd283735d (patch) | |
tree | ab266e939424c5ae501a77a919d93f3045c36960 /mbbsd/user.c | |
parent | 551fed3d083395ad9c826c82192be5df94e36160 (diff) | |
download | pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar.gz pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar.bz2 pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar.lz pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar.xz pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.tar.zst pttbbs-e0697cc2d7d35fb7e5458edd8505908dd283735d.zip |
:)
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@37 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 46aaf7ed..c7982753 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.3 2002/03/17 06:04:18 in2 Exp $ */ +/* $Id: user.c,v 1.4 2002/03/17 06:15:04 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -839,7 +839,7 @@ static void toregister(char *email, char *genbuf, char *phone, char *career, } sprintf(buf, "您在 "BBSNAME" 的認證碼: %s", getregcode(genbuf)); bsmtp("etc/registermail", buf, email, 0); - outs("我們即將寄出認證信 (可能要麻煩您等兩三分鐘)\n" + outs("\n\n\n我們即將寄出認證信 (可能要麻煩您等兩三分鐘)\n" "收到後您可以跟據認證信標題的認證碼\n" "輸入到 (U)ser -> (R)egister 後就可以完成註冊"); pressanykey(); @@ -934,10 +934,10 @@ int u_register(void) }while(!removespace(rname) || isalpha(rname[0])); do{ getfield(7, "學校系級或單位職稱", "服務單位", career, 40); - }while(!removespace(career)); + }while( !removespace(career) || career[0] < 0 || strlen(career) < 4 ); do{ getfield(9, "包括寢室或門牌號碼", "目前住址", addr, 50); - }while(!(addr[0])); + }while( !(addr[0]) || addr[0] < 0 || strlen(addr) < 15 ); do{ getfield(11, "包括長途撥號區域碼", "連絡電話", phone, 20); }while( !removespace(phone) || phone[0] != '0' || strlen(phone) < 8 ); |