summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-02 23:42:28 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-02 23:42:28 +0800
commit4b23515004b96426b06646ca37b6475c0eaf37e5 (patch)
tree11cc980288f2b4efb6eb93800da46a0b371b326b /mbbsd/register.c
parent11dd289ca94895698659e94a462457c75733331b (diff)
downloadpttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar.gz
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar.bz2
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar.lz
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar.xz
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.tar.zst
pttbbs-4b23515004b96426b06646ca37b6475c0eaf37e5.zip
let no PERM_LOGIN user read the mail before fill the register form.
dont check length of nick, address, blahblah every time. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1576 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index ca49400c..58694c3d 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -300,6 +300,16 @@ check_register()
{
char *ptr = NULL;
+ if (HAS_PERM(PERM_LOGINOK))
+ return;
+
+ /*
+ * 避免使用者被退回註冊單後,在知道退回的原因之前,
+ * 又送出一次註冊單。
+ */
+ if (currutmp->mailalert)
+ m_read();
+
stand_title("請詳細填寫個人資料");
while (strlen(cuser.username) < 2)
@@ -331,19 +341,18 @@ check_register()
* cuser.userid, str_mail_address); } while(!strchr(cuser.email, '@'));
*
* } */
- if (!HAS_PERM(PERM_SYSOP) && !HAS_PERM(PERM_LOGINOK)) {
+ if (!HAS_PERM(PERM_SYSOP)) {
/* 回覆過身份認證信函,或曾經 E-mail post 過 */
clear();
move(9, 3);
prints("請詳填寫\033[32m註冊申請單\033[m,"
"通告站長以獲得進階使用權力。\n\n\n\n");
u_register();
- }
+
#ifdef NEWUSER_LIMIT
- if (!(cuser.userlevel & PERM_LOGINOK) && !HAS_PERM(PERM_SYSOP)) {
if (cuser.lastlogin - cuser.firstlogin < 3 * 86400)
cuser.userlevel &= ~PERM_POST;
more("etc/newuser", YEA);
- }
#endif
+ }
}