From 1f395ce46597409e391280e3d211b475be314d6e Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 24 Nov 2015 09:17:15 +0100 Subject: [PATCH] More clear message when a user verify twice its email address --- TODO.txt | 2 +- web/mailmgr.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TODO.txt b/TODO.txt index 156c09c..88a24dc 100644 --- a/TODO.txt +++ b/TODO.txt @@ -5,8 +5,8 @@ ------+ - Global vars checker - Not triple chars between letters - - 10002 message when already clicked - usermgmt: add user delete + DONE - 10002 message when already clicked DONE - trim spaces in apprentice form DONE - Remove books from chat DONE - usermgmt: add email diff --git a/web/mailmgr.php b/web/mailmgr.php index c2e89ee..8d4e107 100644 --- a/web/mailmgr.php +++ b/web/mailmgr.php @@ -76,8 +76,14 @@ function main() { $errcode = 0; } while (FALSE); if ($errcode) { - singlemsg("E' occorso un errore durante la verifica della e-mail.", - sprintf("E' occorso un errore durante la verifica della e-mail.

Codice d'errore: %d.
", $errcode)); + if ($errcode == 10002) { + singlemsg("L'email è già stata verificata con successo.", + "L'email è già stata verificata con successo, ora attenda che le venga recapitata la password."); + } + else { + singlemsg("E' occorso un errore durante la verifica della e-mail.", + sprintf("E' occorso un errore durante la verifica della e-mail.

Codice d'errore: %d.
", $errcode)); + } $bdb->transaction('ROLLBACK'); } } -- 2.17.1