apprentice self-registration completed
[brisk.git] / web / mailmgr.php
index 91d73c7..c2e89ee 100644 (file)
@@ -3,7 +3,7 @@
  *  brisk - mailmgr.php
  *
  *  Copyright (C) 2014      Matteo Nastasi
- *                          mailto: nastasi@alternativeoutput.it 
+ *                          mailto: nastasi@alternativeoutput.it
  *                                  matteo.nastasi@milug.org
  *                          web: http://www.alternativeoutput.it
  *
@@ -59,9 +59,9 @@ function main() {
                 break;
             }
 
-            if (($bdb->user_update_flag_ty($mai->ucode,
-                                        USER_FLAG_TY_DISABLE, USER_DIS_REA_NU_MAILED,
-                                        USER_FLAG_TY_DISABLE, USER_DIS_REA_NU_TOBECHK)) == FALSE) {
+            if (($bdb->user_update_flag_ty($mai->ucode, USER_FLAG_TY_DISABLE,
+                                        TRUE, USER_DIS_REA_NU_MAILED,
+                                        TRUE, USER_DIS_REA_NU_TOBECHK)) == FALSE) {
                 $errcode = 10003;
                 break;
             }
@@ -72,7 +72,7 @@ function main() {
             }
             $bdb->transaction('COMMIT');
 
-            singlemsg("Verifica della e-mail andata a buon fine.", "Verifica della e-mail andata a buon fine.");
+            singlemsg("Verifica della e-mail andata a buon fine.", "Verifica della e-mail andata a buon fine.<br>Riceverai a breve una email con la tua nuova password.<br>Benvenuto!");
             $errcode = 0;
         } while (FALSE);
         if ($errcode) {