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

convert Stud.IP username (LUH-ID) to lowercase

parent 8bc2941a
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ class MatrixChatController extends AuthenticatedController ...@@ -61,7 +61,7 @@ class MatrixChatController extends AuthenticatedController
if (!$this->account && !Config::get()->MATRIX_AUTO_CREATE_ACCOUNTS) { if (!$this->account && !Config::get()->MATRIX_AUTO_CREATE_ACCOUNTS) {
$this->account = new MatrixAccount(); $this->account = new MatrixAccount();
$this->account->user_id = User::findCurrent()->id; $this->account->user_id = User::findCurrent()->id;
$this->account->matrix_account_id = '@' . User::findCurrent()->username . ':' . $this->account->matrix_account_id = '@' . strtolower(User::findCurrent()->username) . ':' .
Config::get()->MATRIX_ACCOUNTS_LOCAL_PART; Config::get()->MATRIX_ACCOUNTS_LOCAL_PART;
$this->account->matrix_password = ''; $this->account->matrix_password = '';
$this->account->store(); $this->account->store();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment