I tried to do this by means of Lua here: viewtopic.php?f=6&t=1231
I have not turned out for the allocation of access rights.
I did it in PHP and MySQL
Have an idea after changing the password to connect to the server nonexistent login, this should cause the server to reread the user table.
Unfortunately this does not always work.