start implementing multiple modes for operation

- synapse: Only trigger register calls and do not store anything for longterm
- local: Provide an identity store and register to the own backend
This commit is contained in:
2018-04-15 21:20:01 +02:00
parent ffce2fc28b
commit f808615f22
9 changed files with 75 additions and 39 deletions

View File

@@ -241,7 +241,7 @@ class mxDatabase {
$res = $this->db->query($sql);
if ($res->fetchColumn() > 0) {
$sql = "SELECT first_name, last_name, note, email, admin_token FROM registrations "
$sql = "SELECT first_name, last_name, note, email, username, admin_token FROM registrations "
. " WHERE verify_token = '" . $verify_token . "'"
. " AND state = " . RegisterState::PendingEmailVerify . " LIMIT 1;";
foreach ($this->db->query($sql) as $row) {