diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-08-20 10:44:00 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-08-20 10:44:00 -0700 |
commit | 7fb7455814090c3a4cf13fc502511257cf046535 (patch) | |
tree | 5f22b87a0fe9575f94574ef9eeec57982c633de8 /app/Auth/ReverseProxy.php | |
parent | 3a0dd411287b2834ac34a1fa0f88b273bd60fbfb (diff) |
Improve default email domain for reverse-prxy auth
Diffstat (limited to 'app/Auth/ReverseProxy.php')
-rw-r--r-- | app/Auth/ReverseProxy.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Auth/ReverseProxy.php b/app/Auth/ReverseProxy.php index 361e9634..6880f5fa 100644 --- a/app/Auth/ReverseProxy.php +++ b/app/Auth/ReverseProxy.php @@ -64,8 +64,9 @@ class ReverseProxy extends Base private function createUser($login) { $email = strpos($login, '@') !== false ? $login : ''; + if (REVERSE_PROXY_DEFAULT_DOMAIN !== '' && empty($email)) { - $email = $login . '@' . REVERSE_PROXY_DEFAULT_DOMAIN; + $email = $login.'@'.REVERSE_PROXY_DEFAULT_DOMAIN; } return $this->user->create(array( |