Subversion Repositories SmartDukaan

Rev

Rev 37126 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37126 Rev 37202
Line 165... Line 165...
165
		return true;
165
		return true;
166
	}
166
	}
167
 
167
 
168
	@Override
168
	@Override
169
	public String resetPasswordById(int userId, String password) throws ProfitMandiBusinessException {
169
	public String resetPasswordById(int userId, String password) throws ProfitMandiBusinessException {
-
 
170
		// Partners live in user.user (id = fofoId), NOT dtr.users — use userUserRepository.
170
		User user = userRepository.selectById(userId);
171
		com.spice.profitmandi.dao.entity.user.User user = userUserRepository.selectById(userId);
171
		String stored = encrypter.encrypt(password);
172
		String stored = encrypter.encrypt(password);
172
		user.setPassword(stored);
173
		user.setPassword(stored);
173
		return stored;
174
		return stored;
174
	}
175
	}
175
 
176