fix plugin config

This commit is contained in:
Feng Lee 2015-05-12 22:41:16 +08:00
parent e93f4cf077
commit aaf5c6b194
2 changed files with 19 additions and 22 deletions

View File

@ -1,11 +1,11 @@
## Overview ## Overview
Authentication with user table of MySQL database. Authentication with user table of MySQL database.
## etc/plugin.config ## etc/plugin.config
```erlang ```
[
{emysql, [ {emysql, [
{pool, 4}, {pool, 4},
{host, "localhost"}, {host, "localhost"},
@ -24,7 +24,6 @@ Authentication with user table of MySQL database.
{password, password} {password, password}
]} ]}
]} ]}
].
``` ```
## Users Table(Demo) ## Users Table(Demo)

View File

@ -1,5 +1,4 @@
[ {emysql, [
{emysql, [
{pool, 4}, {pool, 4},
{host, "localhost"}, {host, "localhost"},
{port, 3306}, {port, 3306},
@ -7,12 +6,11 @@
{password, "public"}, {password, "public"},
{database, "mqtt"}, {database, "mqtt"},
{encoding, utf8} {encoding, utf8}
]}, ]},
{emqttd_auth_mysql, [ {emqttd_auth_mysql, [
{users_table, mqtt_users}, {users_table, mqtt_users},
{field_mapper, [ {field_mapper, [
{username, username}, {username, username},
{password, password, plain} {password, password, plain}
]} ]}
]} ]}
].