Skip to content

Commit 672b3a1

Browse files
changed query
1 parent 1724e3a commit 672b3a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configuration/mosquitto-broker-os2iot/mosquitto-os2iot.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ auth_opt_pg_port **INSERT PORT**
1313
auth_opt_pg_user **INSERT USER**
1414
auth_opt_pg_password **INSERT PASSWORD**
1515
auth_opt_pg_dbname **INSERT DBNAME**
16-
auth_opt_pg_userquery SELECT mqttPassword FROM iot_device WHERE mqttUsername = $1 limit 1
16+
auth_opt_pg_userquery SELECT mqttpasswordhash FROM iot_device WHERE mqttUsername = $1 limit 1
1717
auth_opt_pg_superquery SELECT COUNT(*) FROM iot_device WHERE (mqttusername = $1 AND permissions = 'superUser')
1818
auth_opt_pg_aclquery SELECT mqttTopicName FROM iot_device WHERE (mqttUsername = $1 AND permissions = 'write') OR (9 = $2 AND mqttUsername = $1)
1919

@@ -39,7 +39,7 @@ auth_opt_pg_port **INSERT PORT**
3939
auth_opt_pg_user **INSERT USER**
4040
auth_opt_pg_password **INSERT PASSWORD**
4141
auth_opt_pg_dbname **INSERT DBNAME**
42-
auth_opt_pg_userquery SELECT mqttPassword FROM iot_device WHERE mqttUsername = $1 limit 1
42+
auth_opt_pg_userquery SELECT mqttpasswordhash FROM iot_device WHERE mqttUsername = $1 limit 1
4343
auth_opt_pg_superquery SELECT COUNT(*) FROM iot_device WHERE (mqttusername = $1 AND permissions = 'superUser')
4444
auth_opt_pg_aclquery SELECT mqttTopicName FROM iot_device WHERE (mqttUsername = $1 AND permissions = 'write') OR (9 = $2 AND mqttUsername = $1)
4545

0 commit comments

Comments
 (0)