From 6cbe8ceb129a4490a4f7a8163c20b6687a040358 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 4 Aug 2005 16:32:01 +0000 Subject: Overrides r2977. PLEASE DO NOT USE include/pttbbs.conf. The better way is to write default values in include/config.h and then make an entry in "sample/pttbbs.conf". A new file of sample/pttbbs_minimal.conf is added to make things clear. And DO NOT reveal magic numbers to files in repository. We have to change RECODE_MAGIC now... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2983 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/user.c b/mbbsd/user.c index 236b932e..7424537c 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -462,7 +462,7 @@ getregcode(char *buf) buf[13] = 0; /* real encryption */ - strcpy(buf, crypt(buf, "pt")); + strcpy(buf, crypt(buf, "pd")); /* hack to prevent trailing dots */ if (buf[strlen(buf)-1] == '.') buf[strlen(buf)-1] = 'd'; @@ -1554,7 +1554,10 @@ u_register(void) do{ getdata(10, 0, "您的輸入: ", inregcode, sizeof(inregcode), DOECHO); - if (inregcode[0] == '0' && inregcode[1] == '2') + if ((inregcode[0] == '0' && inregcode[1] == '2') || + (inregcode[0] == 'p' && inregcode[1] == 't') || + 0 + ) { /* old regcode */ vmsg("您輸入的認證碼因系統昇級已失效," -- cgit v1.2.3