diff --git a/src/elogd.c b/src/elogd.c index 54c710f5..b3a7e8fd 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -12168,8 +12168,10 @@ int save_user_config(LOGBOOK * lbs, char *user, BOOL new_user, BOOL activate) sprintf(mail_text + strlen(mail_text), " %s", http_host); sprintf(mail_text + strlen(mail_text), ".\r\n\r\n"); sprintf(url + strlen(url), "?cmd=Login&unm=%s", getparam("new_user_name")); - sprintf(mail_text + strlen(mail_text), "%s %s\r\n", loc("You can access it at"), url); - + sprintf(mail_text + strlen(mail_text), "%s %s.\r\n\r\n", loc("You can access it at"), url); + sprintf(mail_text + strlen(mail_text), "%s.\r\n", + loc("To subscribe to any logbook, click on 'Config' in that logbook")); + if (sendmail (lbs, smtp_host, mail_from, getparam("new_user_email"), mail_text, error, sizeof(error)) == -1) { @@ -12725,8 +12727,6 @@ void show_forgot_pwd_page(LOGBOOK * lbs) void show_new_user_page(LOGBOOK * lbs) { - int i; - /*---- header ----*/ show_html_header(lbs, TRUE, loc("ELOG new user"), TRUE, FALSE, NULL, FALSE); @@ -12758,57 +12758,6 @@ void show_new_user_page(LOGBOOK * lbs) rsprintf("Email:\n"); rsprintf("\n"); - /* count logbooks */ - for (i = 0; lb_list[i].name[0]; i++); - - /* only show subscriptions if less than 10, otherwise browser URL might become too long */ - if (i <= 10) { - - rsprintf("%s:\n", loc("Subscribe to logbooks")); - - rsprintf("
(%s)\n", - loc("enable automatic email notifications")); - - rsprintf("\n"); - - for (i = 0; lb_list[i].name[0]; i++) { - - if (!getcfg_topgroup() || strieq(getcfg_topgroup(), lb_list[i].top_group)) { - - rsprintf("\n", i, i); - rsprintf("
\n", i, lb_list[i].name); - } - } - - if (i > 2) { - rsprintf("\n"); - - rsprintf("\n", loc("Set all")); - rsprintf("\n", loc("Set none")); - } - - rsprintf("\n"); - } - rsprintf("%s:\n", loc("Password")); rsprintf("\n");