mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-1109: Do not rely on SHA2(). Handle password hashing in Java.
This commit is contained in:
		| @@ -87,19 +87,6 @@ | ||||
|  | ||||
|     </select> | ||||
|  | ||||
|     <!-- Select single user by credentials --> | ||||
|     <select id="selectOneByCredentials" resultMap="UserResultMap"> | ||||
|         SELECT | ||||
|             user_id, | ||||
|             username, | ||||
|             password_hash, | ||||
|             password_salt | ||||
|         FROM guacamole_user | ||||
|         WHERE | ||||
|                 username      = #{username,jdbcType=VARCHAR} | ||||
|             AND password_hash = UNHEX(SHA2(CONCAT(#{password,jdbcType=VARCHAR}, HEX(password_salt)), 256)) | ||||
|     </select> | ||||
|  | ||||
|     <!-- Select single user by username --> | ||||
|     <select id="selectOne" resultMap="UserResultMap"> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user