Subversion Repositories SmartDukaan

Rev

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

Rev 36624 Rev 37104
Line 164... Line 164...
164
		user.setPassword(encrypter.encrypt(password));
164
		user.setPassword(encrypter.encrypt(password));
165
		return true;
165
		return true;
166
	}
166
	}
167
 
167
 
168
	@Override
168
	@Override
-
 
169
	public void resetPasswordById(int userId, String password) throws ProfitMandiBusinessException {
-
 
170
		User user = userRepository.selectById(userId);
-
 
171
		user.setPassword(encrypter.encrypt(password));
-
 
172
	}
-
 
173
 
-
 
174
	@Override
169
	public boolean changePassword(User user, String password) throws ProfitMandiBusinessException {
175
	public boolean changePassword(User user, String password) throws ProfitMandiBusinessException {
170
		authService.resetPassword(user.getEmailId(), password);
176
		authService.resetPassword(user.getEmailId(), password);
171
		return true;
177
		return true;
172
	}
178
	}
173
 
179