@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $this->users = []; |
| 49 | 49 | |
| 50 | 50 | if (!$htpasswd = file_get_contents($config['htpasswd_file'])) { |
| 51 | - throw new Exception('Could not read ' . $config['htpasswd_file']); |
|
| 51 | + throw new Exception('Could not read '.$config['htpasswd_file']); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | $this->users = explode("\n", trim($htpasswd)); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | $attrUtils = new Utils\Attributes(); |
| 58 | 58 | $this->attributes = $attrUtils->normalizeAttributesArray($config['static_attributes']); |
| 59 | 59 | } catch (Exception $e) { |
| 60 | - throw new Exception('Invalid static_attributes in authentication source ' . |
|
| 61 | - $this->authId . ': ' . $e->getMessage()); |
|
| 60 | + throw new Exception('Invalid static_attributes in authentication source '. |
|
| 61 | + $this->authId.': '.$e->getMessage()); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | // Traditional crypt(3) |
| 94 | 94 | if ($cryptoUtils->secureCompare($crypted, crypt($password, $crypted))) { |
| 95 | - Logger::debug('User ' . $username . ' authenticated successfully'); |
|
| 95 | + Logger::debug('User '.$username.' authenticated successfully'); |
|
| 96 | 96 | Logger::warning( |
| 97 | 97 | 'CRYPT authentication is insecure. Please consider using something else.' |
| 98 | 98 | ); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | // Apache's custom MD5 |
| 103 | 103 | if (APR1_MD5::check($password, $crypted)) { |
| 104 | - Logger::debug('User ' . $username . ' authenticated successfully'); |
|
| 104 | + Logger::debug('User '.$username.' authenticated successfully'); |
|
| 105 | 105 | Logger::warning( |
| 106 | 106 | 'APR1 authentication is insecure. Please consider using something else.' |
| 107 | 107 | ); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | // PASSWORD_BCRYPT |
| 112 | 112 | if ($cryptoUtils->pwValid($crypted, $password)) { |
| 113 | - Logger::debug('User ' . $username . ' authenticated successfully'); |
|
| 113 | + Logger::debug('User '.$username.' authenticated successfully'); |
|
| 114 | 114 | return $attributes; |
| 115 | 115 | } |
| 116 | 116 | throw new Error\Error('WRONGUSERPASS'); |