Log trace for creating new session tokens

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-05-18 15:35:07 +02:00
parent c6af693dac
commit e478de8fa0
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 2 additions and 0 deletions

View File

@ -681,6 +681,8 @@ class Session implements IUserSession, Emitter {
return false; return false;
} }
$name = isset($request->server['HTTP_USER_AGENT']) ? $request->server['HTTP_USER_AGENT'] : 'unknown browser'; $name = isset($request->server['HTTP_USER_AGENT']) ? $request->server['HTTP_USER_AGENT'] : 'unknown browser';
$e = new \Exception('createSessionToken');
$this->logger->logException($e, ['app' => 'createuser_debug', 'level' => 2]);
try { try {
$sessionId = $this->session->getId(); $sessionId = $this->session->getId();
$pwd = $this->getPassword($password); $pwd = $this->getPassword($password);