Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-09 13:28:24 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-09 13:28:24 +0400
commit22bd69f75cc91a79653038d20143aff9ee8b226a (patch)
tree15751c6c67c701ae711dfeafc333923f8b2652ce /lib/private/user.php
parent9b7c3a5c66a9f987ff572aaece2ef6e895bf4ab6 (diff)
set login name within apache auth backend
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/user.php b/lib/private/user.php
index e0d6b9f3f51..98ebebbe5c1 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -246,6 +246,8 @@ class OC_User {
session_regenerate_id(true);
self::setUserId($uid);
self::setDisplayName($uid);
+ self::getUserSession()->setLoginName($uid);
+
OC_Hook::emit( "OC_User", "post_login", array( "uid" => $uid, 'password'=>'' ));
return true;
}