AuthManager

- Changed the `User[string]` to `User*[string]`
- Updated `getUser(string)` to use the new `User*[string]`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-19 14:50:07 +02:00
parent ebd2df7af7
commit 8a7e70e2a9
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public class AuthManager
* ChannelManager code to do that
*
*/
private User[string] users;
private User*[string] users;
private Mutex usersLock;
private this(AuthProvider provider)
@ -163,7 +163,7 @@ public class AuthManager
// Lock
this.usersLock.lock();
foundUser = username in this.users;
foundUser = this.users[username];
// Unlock
this.usersLock.unlock();