Quick tweak to logic in password history file.
);
DELETE FROM [guacamole_user_password_history]
- WHERE password_history_id NOT IN (
+ WHERE user_id = #{record.userID,jdbcType=INTEGER}
+ AND password_history_id NOT IN (
SELECT TOP(#{maxHistorySize}) password_history_id
FROM [guacamole_user_password_history]
WHERE user_id = #{record.userID,jdbcType=INTEGER}
