| Line 8... |
Line 8... |
| 8 |
import in.shop2020.model.v1.user.UserContextService.Client;
|
8 |
import in.shop2020.model.v1.user.UserContextService.Client;
|
| 9 |
import in.shop2020.serving.controllers.BaseController;
|
9 |
import in.shop2020.serving.controllers.BaseController;
|
| 10 |
import in.shop2020.serving.utils.DesEncrypter;
|
10 |
import in.shop2020.serving.utils.DesEncrypter;
|
| 11 |
import in.shop2020.thrift.clients.HelperServiceClient;
|
11 |
import in.shop2020.thrift.clients.HelperServiceClient;
|
| 12 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
12 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
| 13 |
import in.shop2020.utils.HelperService;
|
- |
|
| 14 |
import in.shop2020.utils.Mail;
|
13 |
import in.shop2020.utils.Mail;
|
| 15 |
|
14 |
|
| 16 |
import org.apache.juli.logging.Log;
|
- |
|
| 17 |
import org.apache.juli.logging.LogFactory;
|
- |
|
| 18 |
import org.apache.log4j.Logger;
|
15 |
import org.apache.log4j.Logger;
|
| 19 |
import org.apache.struts2.convention.annotation.Result;
|
16 |
import org.apache.struts2.convention.annotation.Result;
|
| 20 |
import org.apache.struts2.convention.annotation.Results;
|
17 |
import org.apache.struts2.convention.annotation.Results;
|
| 21 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
18 |
import org.apache.struts2.rest.DefaultHttpHeaders;
|
| 22 |
import org.apache.struts2.rest.HttpHeaders;
|
19 |
import org.apache.struts2.rest.HttpHeaders;
|
| Line 91... |
Line 88... |
| 91 |
mail.setSubject("Password reset request");
|
88 |
mail.setSubject("Password reset request");
|
| 92 |
mail.setTo(toList);
|
89 |
mail.setTo(toList);
|
| 93 |
mail.setData("Your new password is: " + newPassword);
|
90 |
mail.setData("Your new password is: " + newPassword);
|
| 94 |
client.sendMail(mail);
|
91 |
client.sendMail(mail);
|
| 95 |
} catch (Exception e) {
|
92 |
} catch (Exception e) {
|
| 96 |
// TODO Auto-generated catch block
|
- |
|
| 97 |
e.printStackTrace();
|
93 |
e.printStackTrace();
|
| 98 |
return false;
|
94 |
return false;
|
| 99 |
}
|
95 |
}
|
| 100 |
return true;
|
96 |
return true;
|
| 101 |
}
|
97 |
}
|