Author: tuancn
Date: 2010-01-29 05:36:38 -0500 (Fri, 29 Jan 2010)
New Revision: 1468
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIForgetPassword.java
Log:
GTNPORTAL-528: Show message when don't send mail to mail server
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIForgetPassword.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIForgetPassword.java 2010-01-29
10:08:00 UTC (rev 1467)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/login/UIForgetPassword.java 2010-01-29
10:36:38 UTC (rev 1468)
@@ -135,7 +135,15 @@
"?portal:componentId=UIPortal&portal:action=RecoveryPasswordAndUsername&datesend="
+ now.toString()
+ "&email=" + email;
activeLink = headerMail + activeLink + footerMail;
- mailSrc.sendMessage("exoservice(a)gmail.com", email, "Remind
password and username", activeLink);
+ try{
+ mailSrc.sendMessage("exoservice(a)gmail.com", email, "Remind
password and username", activeLink);
+ } catch(Exception e){
+ requestContext.getUIApplication().addMessage(
+ new ApplicationMessage("Can't send mail to mail server.",
null, ApplicationMessage.ERROR));
+ requestContext.addUIComponentToUpdateByAjax(uilogin);
+ return;
+ }
+
uilogin.getChild(UILoginForm.class).setRendered(true);
uilogin.getChild(UIForgetPasswordWizard.class).setRendered(false);
uilogin.getChild(UIForgetPassword.class).setRendered(false);
Show replies by date