summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-07 10:22:53 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-07 10:22:53 +0800
commit207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0 (patch)
tree9357ef7d424f704fe56550f935f0dab266c7cf20 /mbbsd/admin.c
parent9f151c2c8a1f0dc43251c1653294ce9264b92c85 (diff)
downloadpttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar.gz
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar.bz2
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar.lz
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar.xz
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.tar.zst
pttbbs-207ed6cf4ce0603d1ba551f0f44ece4c5e2650b0.zip
passwd change back
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1715 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 654f045f..efea1be5 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -130,7 +130,7 @@ search_key_user(char *passwdfile, int mode)
if (ch == 's' && !mode) {
if ((ch = searchuser(user.userid))) {
setumoney(ch, user.money);
- passwd_index_update(ch, &user);
+ passwd_update(ch, &user);
fclose(fp1);
return 0;
} else {
@@ -148,7 +148,7 @@ search_key_user(char *passwdfile, int mode)
fprintf(stderr, "本站人口已達飽和!\n");
exit(1);
}
- if (passwd_index_update(allocid, &user) == -1) {
+ if (passwd_update(allocid, &user) == -1) {
fprintf(stderr, "客滿了,再見!\n");
exit(1);
}
@@ -1068,7 +1068,6 @@ scan_register_form(char *regfile, int automode, int neednum)
strncat(genbuf, "\n", sizeof(genbuf));
log_file(buf, genbuf, 1);
passwd_update(unum, &muser);
- passwd_index_update(unum, &muser);
if ((fout = fopen(logfile, "a"))) {
for (n = 0; field[n]; n++)