summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-26 12:45:08 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-11 13:36:46 +0200
commit53636c73d649514fbbfeba4741f39be1725e47fd (patch)
tree68c783886304248a2e1f0ce20b5e855fa74d8f64 /lib/private
parent3ab922601a2e6b9b170007461b9e0718c70bddcd (diff)
downloadnextcloud-server-53636c73d649514fbbfeba4741f39be1725e47fd.tar.gz
nextcloud-server-53636c73d649514fbbfeba4741f39be1725e47fd.zip
Add controller to generate client tokens
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/User/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 7d4594e7205..5d869a04ca2 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -353,7 +353,7 @@ class Session implements IUserSession, Emitter {
// User does not exist
return false;
}
- $name = isset($request->server['HTTP_USER_AGENT']) ? $request->server['HTTP_USER_AGENT'] : 'unknown device';
+ $name = isset($request->server['HTTP_USER_AGENT']) ? $request->server['HTTP_USER_AGENT'] : 'unknown browser';
// TODO: use ISession::getId(), https://github.com/owncloud/core/pull/24229
$sessionId = session_id();
$token = $this->tokenProvider->generateToken($sessionId, $uid, $password, $name);