aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-06-04 14:41:26 +0200
committerJerome Bakker <jeabakker@coldtrick.com>2012-06-04 14:41:26 +0200
commit07ad752820ef2398c0d9dfda630d2fb20b454d1f (patch)
tree49b49c51fec9e493c72c8464cb29c079cc10c1b8 /mod
parenta333c200e30fc85c2c4b43f7b665561146a61334 (diff)
downloadelgg-07ad752820ef2398c0d9dfda630d2fb20b454d1f.tar.gz
elgg-07ad752820ef2398c0d9dfda630d2fb20b454d1f.tar.bz2
fixed: uncaught exception in uservalidationbyemail
Diffstat (limited to 'mod')
-rw-r--r--mod/uservalidationbyemail/start.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php
index ea59a2e7b..f98f57faf 100644
--- a/mod/uservalidationbyemail/start.php
+++ b/mod/uservalidationbyemail/start.php
@@ -184,7 +184,11 @@ function uservalidationbyemail_page_handler($page) {
$user->enable();
elgg_pop_context();
- login($user);
+ try {
+ login($user);
+ } catch(LoginException $e){
+ register_error($e->getMessage());
+ }
} else {
register_error(elgg_echo('email:confirm:fail'));
}