Subversion Repositories SmartDukaan

Rev

Rev 1034 | Rev 3126 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1034 Rev 2949
Line 67... Line 67...
67
		    		}else{
67
		    		}else{
68
		    			addActionError("Email address is not registered with us.");
68
		    			addActionError("Email address is not registered with us.");
69
		    			return "failure";
69
		    			return "failure";
70
		    		}
70
		    		}
71
				} catch (Exception e) {
71
				} catch (Exception e) {
72
					e.printStackTrace();
72
					log.error("Unexpected error while processing forgot password request", e);
73
					addActionError("Something went wrong. Try again.");
73
					addActionError("Something went wrong. Try again.");
74
				}
74
				}
75
	    	}
75
	    	}
76
	    	return "failure";
76
	    	return "failure";
77
	    }
77
	    }
Line 88... Line 88...
88
				mail.setSubject("Password reset request");
88
				mail.setSubject("Password reset request");
89
				mail.setTo(toList);
89
				mail.setTo(toList);
90
				mail.setData("Your new password is: " + newPassword);
90
				mail.setData("Your new password is: " + newPassword);
91
				client.sendMail(mail);
91
				client.sendMail(mail);
92
			} catch (Exception e) {
92
			} catch (Exception e) {
93
				e.printStackTrace();
93
				log.error("Unexpected error while mailing the new password");
94
				return false;
94
				return false;
95
			}
95
			}
96
			return true;
96
			return true;
97
		}
97
		}
98
		
98