summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-28 13:39:47 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-01-28 13:39:47 +0800
commit7e6208a021bc404aaeb782669b7c403160a4c8d8 (patch)
tree2ac69b5b4c4c4e453ab5a85346e0cfd10dfe566e /mbbsd/admin.c
parent0454427012fc548d888d7318ba78eea8e9de78fb (diff)
downloadpttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar.gz
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar.bz2
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar.lz
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar.xz
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.tar.zst
pttbbs-7e6208a021bc404aaeb782669b7c403160a4c8d8.zip
- user: allow admins to change email to 'invalid'.
- admin: try to solve "registration failed if user is online" - register: fix display for expired accounts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3873 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index d659b4fa..61bf1dba 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1344,8 +1344,9 @@ scan_register_form(const char *regfile, int automode, int neednum)
fdata[4], fdata[2], uid);
strlcpy(muser.justify, genbuf, sizeof(muser.justify));
- // XXX TODO notify users?
passwd_update(unum, &muser);
+ // XXX TODO notify users?
+ sendalert(muser.userid, ALERT_PWD_PERM); // force to reload perm
sethomefile(buf, muser.userid, "justify");
log_file(buf, LOG_CREAT, genbuf);