Second implementation with matrix_synapse_rest_auth #2

Merged
krombel merged 51 commits from second_implementation into master 2018-03-19 13:57:16 +01:00
Showing only changes of commit ed15ec5bb5 - Show all commits

View File

@@ -61,6 +61,13 @@ class mxDatabase
create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)");
// make sure the bot is allowed to login
require_once("config.php");
$password = $this->addUser("Register", "Bot", "register_bot", $register_email);
$config["register_password"] = $password;
$myfile = fopen("config.json", "w");
fwrite($myfile, json_encode($config, JSON_PRETTY_PRINT));
fclose($myfile);
}
else {
// establish connection