Skip to content
Snippets Groups Projects
Commit 5106c84b authored by Thomas Hackl's avatar Thomas Hackl
Browse files

typo in config call

parent 8868a90b
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,8 @@ class MatrixAccount extends SimpleORMap
// Access token specified, use this (and skip login because the token can be used directly).
if (trim(Config::get()->MATRIX_SYSTEM_ACCOUNT_ACCESS_TOKEN) != '') {
$account = new Patrix\Account(trim(Config::get()->MATRIX_SYSTEM_ACCOUNT_USERNAME), '');
$account->setUserId(
'@' . Config::get()->MATRIX_SYSTEM_ACCOUNT_USERNAME . ':' . MATRIX_ACCOUNTS_LOCAL_PART);
$account->setUserId('@' . Config::get()->MATRIX_SYSTEM_ACCOUNT_USERNAME .
':' . Config::get()->MATRIX_ACCOUNTS_LOCAL_PART);
$account->setAccessData(trim(Config::get()->MATRIX_SYSTEM_ACCOUNT_ACCESS_TOKEN), 'Stud.IP');
// No token, login by username and password.
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment