summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-05 00:32:01 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-05 00:32:01 +0800
commit6cbe8ceb129a4490a4f7a8163c20b6687a040358 (patch)
treeef9e1f87beccc92d4a2a7a5815383720d3b97050 /mbbsd/user.c
parent17fb0288af795a2e07498eb27c80aca7a9ebf5be (diff)
downloadpttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar.gz
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar.bz2
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar.lz
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar.xz
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.tar.zst
pttbbs-6cbe8ceb129a4490a4f7a8163c20b6687a040358.zip
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". <recent updates always put new settings in sample/* and no one updates only in "local" files> 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
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c7
1 files changed, 5 insertions, 2 deletions
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("您輸入的認證碼因系統昇級已失效,"