diff options
-rw-r--r-- | mbbsd/admin.c | 6 | ||||
-rw-r--r-- | mbbsd/stuff.c | 13 | ||||
-rw-r--r-- | mbbsd/user.c | 9 |
3 files changed, 7 insertions, 21 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 104f749d..5803c8f2 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -95,7 +95,7 @@ search_key_user(const char *passwdfile, int mode) assert(fp1); clear(); - getdata(0, 0, mode ? "請輸入使用者關鍵字[電話|地址|姓名|身份證|上站地點|" + getdata(0, 0, mode ? "請輸入使用者關鍵字[電話|地址|姓名|上站地點|" "email|小雞id] :" : "請輸入id :", key, sizeof(key), DOECHO); if(!key[0]) { fclose(fp1); @@ -1069,10 +1069,10 @@ scan_register_form(const char *regfile, int automode, int neednum) char genbuf[200]; char *logfile = "register.log"; char *field[] = { - "uid", "ident", "name", "career", "addr", "phone", "email", NULL + "uid", "name", "career", "addr", "phone", "email", NULL }; char *finfo[] = { - "帳號", "身分證號", "真實姓名", "服務單位", "目前住址", + "帳號", "真實姓名", "服務單位", "目前住址", "連絡電話", "電子郵件信箱", NULL }; char *reason[REJECT_REASONS+1] = { diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 1c6c3941..eff6d399 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -200,19 +200,6 @@ invalid_pname(const char *str) } int -valid_ident(const char *ident) -{ - char *invalid[] = {"unknown@", "root@", "gopher@", "bbs@", - "@bbs", "guest@", "@ppp", "@slip", NULL}; - int i; - - for (i = 0; invalid[i]; i++) - if (strcasestr(ident, invalid[i])) - return 0; - return 1; -} - -int is_uBM(const char *list, const char *id) { register int len; diff --git a/mbbsd/user.c b/mbbsd/user.c index 98f2052a..3932c0c1 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1277,7 +1277,7 @@ isvalidemail(const char *email) static void toregister(char *email, char *genbuf, char *phone, char *career, - char *ident, char *rname, char *addr, char *mobile) + char *rname, char *addr, char *mobile) { FILE *fn; char buf[128]; @@ -1492,7 +1492,7 @@ static char *isvalidphone(char *phone) int u_register(void) { - char rname[20], addr[50], ident[11], mobile[16]; + char rname[20], addr[50], mobile[16]; #ifdef FOREIGN_REG char fore[2]; #endif @@ -1643,8 +1643,7 @@ u_register(void) strcmp(inregcode, "X") != 0) { vmsg("認證碼錯誤!"); } else { - toregister(email, genbuf, phone, career, - ident, rname, addr, mobile); + toregister(email, genbuf, phone, career, rname, addr, mobile); return FULLUPDATE; } } @@ -1771,7 +1770,7 @@ u_register(void) trim(addr); trim(phone); - toregister(email, genbuf, phone, career, ident, rname, addr, mobile); + toregister(email, genbuf, phone, career, rname, addr, mobile); clear(); move(9, 3); |