GUACAMOLE-36: Record and maintain password history.

This commit is contained in:
Michael Jumper committed 2017-01-05 13:37:13 -08:00
1 parent ae695ef17b
commit a943077d40
7 files changed
+111 -2

No files matched your search

@@ -63,7 +63,16 @@
#{record.passwordHash,jdbcType=BINARY},
#{record.passwordSalt,jdbcType=BINARY},
#{record.passwordDate,jdbcType=TIMESTAMP}
)
);
DELETE FROM guacamole_user_password_history
WHERE password_history_id IN (
SELECT password_history_id
FROM guacamole_user_password_history
WHERE user_id = #{record.userID,jdbcType=INTEGER}
ORDER BY password_date DESC
OFFSET #{maxHistorySize}
);
</insert>